summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 06e6724..4fb268a 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -87,7 +87,11 @@ async fn main() -> Result<()> {
serenity::GatewayIntents::non_privileged() | serenity::GatewayIntents::MESSAGE_CONTENT;
let options = FrameworkOptions {
- commands: commands::to_global_commands(),
+ commands: {
+ let mut commands = commands::to_global_commands();
+ commands.append(&mut commands::to_optional_commands());
+ commands
+ },
on_error: |error| Box::pin(handlers::handle_error(error)),
command_check: Some(|ctx| {