mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-02-02 13:31:54 +01:00
Fix disabling a single command causing all commands to be disabled
This commit is contained in:
parent
d244956b4b
commit
0a0416ae38
@ -160,12 +160,18 @@ public class JDADiscordService implements DiscordService {
|
||||
}
|
||||
|
||||
interactionController = new InteractionControllerImpl(this);
|
||||
// Each will throw an exception if disabled
|
||||
try {
|
||||
interactionController.registerCommand(new ExecuteCommand(this));
|
||||
} catch (InteractionException ignored) {
|
||||
}
|
||||
try {
|
||||
interactionController.registerCommand(new MessageCommand(this));
|
||||
} catch (InteractionException ignored) {
|
||||
}
|
||||
try {
|
||||
interactionController.registerCommand(new ListCommand(this));
|
||||
} catch (InteractionException ignored) {
|
||||
// won't happen
|
||||
}
|
||||
|
||||
updatePrimaryChannel();
|
||||
|
Loading…
Reference in New Issue
Block a user