aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/commands/StatusHandler.java
blob: 090af408eddcf144a4d1d74b295ef4d4c0e849e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package commands;
import net.dv8tion.jda.api.JDA;
import net.dv8tion.jda.api.interactions.commands.OptionType;
import net.dv8tion.jda.api.interactions.commands.build.CommandData;

public class StatusHandler {
    JDA jda;
    public StatusHandler(JDA jda) {
        this.jda = jda;

    }
    public void updateSlashCommands(){
        jda.upsertCommand(new CommandData("schedule", "Shows upcoming streams and events for a given organization")
                .addOption(OptionType.STRING, "organization",
                        "Holodex Organization Name (e.g Hololive, Nijisanji, Phase Connect, PRISM, Production Kawaii)",
                        true))
                .queue();
        jda.upsertCommand(new CommandData("schedule-channel", "Shows upcoming streams and events for a given channel ID")
                .addOption(OptionType.STRING, "channel-id",
                        "YouTube Channel ID (e.g UCp6993wxpyDPHUpavwDFqgg)",
                        true))
                .queue();
        jda.upsertCommand(new CommandData("configure-stream-channel", "Sets channel to be updated with live and upcoming streams for the channel ID provided")
                .addOption(OptionType.STRING,"channel-id", "YouTube Channel ID (e.g UCp6993wxpyDPHUpavwDFqgg)", true))
                .queue();
        jda.upsertCommand(new CommandData("configure-org-channel", "Sets channel to be updated with live and upcoming streams for the organization provided")
                .addOption(OptionType.STRING,"organization", "Holodex Organization Name (e.g Hololive, Nijisanji, Phase Connect, PRISM, Production Kawaii)", true))
                .queue();


    }


}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage