fix: fixed nowplaying command not working

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-05-11 08:13:56 +02:00
parent 5abfad091d
commit 7a20ad8088
2 changed files with 3 additions and 3 deletions

View file

@ -22,7 +22,7 @@ A Discord music bot, written in Kotlin using the kord library.
## Known issues
- The Repeat feature does not function
- The Queue does not show the current song, if there is no song next up
- The nowplaying command always shows the current position of the track at 0s
- Not all comments are listed below
## Commands

View file

@ -79,8 +79,8 @@ class NowPlayingExtension : Extension() {
)
}\n" +
">>>${track.uri}",
"https://img.youtube.com/vi/" + UrlUtil.getYtThumbnailUrl(track.uri!!) + "/maxresdefault.jpg",
user.asUser().username + "#" + user.asUser().discriminator
user.asUser().username + "#" + user.asUser().discriminator,
"https://img.youtube.com/vi/" + UrlUtil.getYtThumbnailUrl(track.uri.toString()) + "/maxresdefault.jpg"
)
)