blob: ff486328926b935cecd04f3848060a4f972aebf1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
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();
}
}
|