aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/commands/UIPusher.java
blob: 434ea41cac89cd6a6b13cf8bf0bee293ec456a5b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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.components.buttons.Button;


public class UIPusher {

    public void showControls(SlashCommandInteractionEvent event) {
        event.reply("Controls for the player:")
                .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