diff options
| author | seth <[email protected]> | 2023-12-05 06:56:59 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-15 16:41:13 -0500 |
| commit | 3c1daf3cdc95924fd91158d5e46df668b0e43833 (patch) | |
| tree | 54fd516f970dbedb04a759c915609db9e56b5d61 /src/main.rs | |
| parent | 00b933a90de1799d9f0a8074e427491339e7134a (diff) | |
fix: optional commands as prefix commands
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 6 |
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| { |
