From 5abfad091df84d99606501335a34a9a123b79464 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Thu, 11 May 2023 08:06:40 +0200 Subject: [PATCH] fix: fixed action row not adding and causing issues Signed-off-by: limited_dev --- .../botendo/extensions/music/NowPlayingExtension.kt | 7 ++++++- .../limited_dev/botendo/extensions/music/PlayExtension.kt | 1 - .../limited_dev/botendo/extensions/music/QueueExtension.kt | 7 ++++++- .../limited_dev/botendo/extensions/music/SkipExtension.kt | 7 ++++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/de/limited_dev/botendo/extensions/music/NowPlayingExtension.kt b/src/main/kotlin/de/limited_dev/botendo/extensions/music/NowPlayingExtension.kt index 00fb3ec..39c9333 100644 --- a/src/main/kotlin/de/limited_dev/botendo/extensions/music/NowPlayingExtension.kt +++ b/src/main/kotlin/de/limited_dev/botendo/extensions/music/NowPlayingExtension.kt @@ -85,7 +85,12 @@ class NowPlayingExtension : Extension() { ) this.actionRow { - ButtonUtil.getMusicControllerButtons(player.paused, gts.repeating) + this.components.addAll( + ButtonUtil.getMusicControllerButtons( + player.paused, + gts.repeating + ).components + ) } } } diff --git a/src/main/kotlin/de/limited_dev/botendo/extensions/music/PlayExtension.kt b/src/main/kotlin/de/limited_dev/botendo/extensions/music/PlayExtension.kt index b05a5e2..301c2c4 100644 --- a/src/main/kotlin/de/limited_dev/botendo/extensions/music/PlayExtension.kt +++ b/src/main/kotlin/de/limited_dev/botendo/extensions/music/PlayExtension.kt @@ -94,7 +94,6 @@ class PlayExtension : Extension() { ) } MusicManager.addToQueue(this, link, search) - } } } diff --git a/src/main/kotlin/de/limited_dev/botendo/extensions/music/QueueExtension.kt b/src/main/kotlin/de/limited_dev/botendo/extensions/music/QueueExtension.kt index 9d1f6cb..c27bde5 100644 --- a/src/main/kotlin/de/limited_dev/botendo/extensions/music/QueueExtension.kt +++ b/src/main/kotlin/de/limited_dev/botendo/extensions/music/QueueExtension.kt @@ -80,7 +80,12 @@ class QueueExtension : Extension() { ) this.actionRow { - ButtonUtil.getMusicControllerButtons(player.paused, gts.repeating) + this.components.addAll( + ButtonUtil.getMusicControllerButtons( + player.paused, + gts.repeating + ).components + ) } } } diff --git a/src/main/kotlin/de/limited_dev/botendo/extensions/music/SkipExtension.kt b/src/main/kotlin/de/limited_dev/botendo/extensions/music/SkipExtension.kt index 486d8f9..9f9c2ee 100644 --- a/src/main/kotlin/de/limited_dev/botendo/extensions/music/SkipExtension.kt +++ b/src/main/kotlin/de/limited_dev/botendo/extensions/music/SkipExtension.kt @@ -108,7 +108,12 @@ class SkipExtension : Extension() { ) this.actionRow { - ButtonUtil.getMusicControllerButtons(player.paused, gts.repeating) + this.components.addAll( + ButtonUtil.getMusicControllerButtons( + player.paused, + gts.repeating + ).components + ) } } }