Skip to content

Commit 4896b3d

Browse files
author
H2ofiremaster
committed
Clead up command registration code
1 parent be4be0c commit 4896b3d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/main/java/rocks/learnercouncil/cameron/Cameron.java

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,15 @@ public static void main(String[] args) throws InterruptedException, LoginExcepti
8989
new OptionData(OptionType.STRING, "message", "The thing cameron will say", true))
9090
.setDefaultEnabled(false),
9191
Commands.slash("pronouns", "Set your pronouns"),
92-
Commands.slash("whois", "Check the information of a certain user").addOption(OptionType.USER, "user", "The usre to get the information of", true), Commands.slash("report", "Report a user").addOptions(new OptionData(OptionType.USER, "user", "The user you're reporting.", true), new OptionData(OptionType.STRING, "reason", "The reason you're reporting them.", true)), Commands.slash("kick", "Kicks a user").addOptions(new OptionData(OptionType.USER, "user", "the user to kick", true), new OptionData(OptionType.STRING, "reason", "the reason you're kicking them", false)).setDefaultEnabled(false),
92+
Commands.slash("whois", "Check the information of a certain user").addOption(OptionType.USER, "user", "The usre to get the information of", true),
93+
Commands.slash("report", "Report a user")
94+
.addOptions(
95+
new OptionData(OptionType.USER, "user", "The user you're reporting.", true),
96+
new OptionData(OptionType.STRING, "reason", "The reason you're reporting them.", true)),
97+
Commands.slash("kick", "Kicks a user").addOptions(
98+
new OptionData(OptionType.USER, "user", "the user to kick", true),
99+
new OptionData(OptionType.STRING, "reason", "the reason you're kicking them", false))
100+
.setDefaultEnabled(false),
93101
Commands.slash("ban", "Kicks a user")
94102
.addOptions(
95103
new OptionData(OptionType.USER, "user", "the user to kick", true),

0 commit comments

Comments
 (0)