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
{{ message }}
Repository navigation
Commit c93e1e2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,9 @@ General utility bot for the [JavaDiscord Community](https://join.javadiscord.net
7
7
To start up, run the bot once, and it will generate a `config` directory. Stop the bot, and set the `jdaBotToken` (in `systems.json`) to contain your token. Additionally, you should set the `mongoDatabaseUrl` to a URL to your own instance of MongoDB.
8
8
9
9
# Commands
10
-
Commands are defined in this bot using a `commands.yaml` configuration file. The data in this file is transformed at startup time into an array of `net.javadiscord.javabot.command.data.CommandConfig` objects using JSON deserialization.
10
+
Commands are defined in this bot using a `commands.yaml` configuration file. The data in this file is transformed at startup time into an array of `net.javadiscord.javabot.command.data.slash_commands.SlashCommandConfig` objects using JSON deserialization.
11
11
12
-
These commands are then used by `net.javadiscord.javabot.command.SlashCommands#registerSlashCommands(Guild)` to register the defined commands as Discord slash commands which become available to users in guilds and private messages with the bot.
12
+
These commands are then used by `net.javadiscord.javabot.command.InteractionHandler#registerSlashCommands(Guild)` to register the defined commands as Discord slash commands which become available to users in guilds and private messages with the bot.
13
13
14
14
**Each command MUST define a `handler` property, whose name is the fully-qualified class name of a `SlashCommandHandler`.** When registering commands, the bot will look for such a class, and attempt to create a new instance of it using a no-args constructor. Therefore, make sure that your handler class has a no-args constructor.
0 commit comments