You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.addCommand(newSlashCommand()) // register your commands
53
+
.addCommand(newPingCommand()) // register the ping command
54
54
.build();
55
55
56
-
slash.getCommand("slash_cmd") // get a SlashCommand by it's @Slash.Tag
57
-
.upsertGuild(...); // upsert as a guild Slash Command
56
+
slash.getCommand("ping_command") // get the ping command by it's @Slash.Tag
57
+
.upsertGuild(...); // upsert it as a guild Slash Command
58
58
}
59
59
60
-
@Slash.Handler
60
+
@Slash.Handler()
61
61
publicvoidcallback(SlashCommandEventevent) {
62
62
event.deferReply()
63
-
.setContent("Hello World!")
63
+
.setContent("pong!")
64
64
.queue();
65
65
}
66
66
}
67
67
```
68
68
69
69
*For more examples and usage guides, please refer to the [wiki](https://github.com/Azzerial/slash-commands/wiki) and the [playground module](playground/).*
70
70
71
-
## Installation
71
+
## Installation
72
72
73
73
This project uses [Jitpack](https://jitpack.io/#azzerial/slash-commands).
thrownewIllegalArgumentException("Multiple handlers were declared for the '" + handler.value() + "' command path in " + cls.getSimpleName() + ".class!");
0 commit comments