aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/commands/StatusHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/commands/StatusHandler.java')
-rw-r--r--src/main/java/commands/StatusHandler.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/main/java/commands/StatusHandler.java b/src/main/java/commands/StatusHandler.java
new file mode 100644
index 0000000..ff48632
--- /dev/null
+++ b/src/main/java/commands/StatusHandler.java
@@ -0,0 +1,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();
+
+ }
+
+
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage