aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/commands
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/commands')
-rw-r--r--src/main/java/commands/UIPusher.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/commands/UIPusher.java b/src/main/java/commands/UIPusher.java
index 43d98a3..434ea41 100644
--- a/src/main/java/commands/UIPusher.java
+++ b/src/main/java/commands/UIPusher.java
@@ -1,23 +1,21 @@
package commands;
-
-
+import net.dv8tion.jda.api.components.actionrow.ActionRow;
import net.dv8tion.jda.api.entities.emoji.Emoji;
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent;
-import net.dv8tion.jda.api.interactions.components.buttons.Button;
+import net.dv8tion.jda.api.components.buttons.Button;
public class UIPusher {
- public void showControls(SlashCommandInteractionEvent event){
+ public void showControls(SlashCommandInteractionEvent event) {
event.reply("Controls for the player:")
- .addActionRow(
+ .addComponents(ActionRow.of(
Button.primary("action-volumedown", Emoji.fromUnicode("U+1F509")),
Button.primary("action-skip", Emoji.fromUnicode("U+23E9")),
Button.primary("action-pause", Emoji.fromUnicode("U+23EF")),
Button.primary("action-stop", Emoji.fromUnicode("U+23F9")),
Button.primary("action-volumeup", Emoji.fromUnicode("U+1F50A"))
- )
+ ))
.queue();
}
-
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage