diff --git a/euphoxide-bot/src/command.rs b/euphoxide-bot/src/command.rs index 29534d0..c2a04dd 100644 --- a/euphoxide-bot/src/command.rs +++ b/euphoxide-bot/src/command.rs @@ -153,6 +153,13 @@ pub trait CommandExt: Sized { fn clap(self) -> clap::Clap { clap::Clap(self) } + + fn add_to(self, commands: &mut Commands) + where + Self: Command + Send + Sync + 'static, + { + commands.add(self); + } } // Sadly this doesn't work: `impl> CommandExt for C {}`