From db362aefe343e2cb27d6c01c89464b0a8100b295 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 18 Feb 2024 18:21:54 -0500 Subject: fix duplicated command registrations --- src/commands/optional/teawiespam.rs | 2 +- src/main.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/commands/optional/teawiespam.rs b/src/commands/optional/teawiespam.rs index 2111308..1ec237e 100644 --- a/src/commands/optional/teawiespam.rs +++ b/src/commands/optional/teawiespam.rs @@ -4,7 +4,7 @@ use color_eyre::eyre::Result; use log::debug; /// teawie will spam you. -#[poise::command(slash_command, prefix_command)] +#[poise::command(slash_command)] pub async fn teawiespam(ctx: Context<'_>) -> Result<()> { let gid = ctx.guild_id().unwrap_or_default(); let settings = ctx.data().storage.get_guild_settings(&gid).await?; diff --git a/src/main.rs b/src/main.rs index 3cf07f9..d2ba8e2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,7 +90,6 @@ async fn main() -> Result<()> { let options = FrameworkOptions { commands: { let mut commands = commands::global(); - commands.append(&mut commands::optional()); commands.append(&mut commands::moderation()); commands }, -- cgit v1.2.3