summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-18 18:21:54 -0500
committerseth <[email protected]>2024-02-18 18:38:30 -0500
commitdb362aefe343e2cb27d6c01c89464b0a8100b295 (patch)
treed4d40733c1b0e17cf9ec68cb6f71bdd0aebc904a
parentf2cb41b11aa247ae1425d10c9162e7386089583c (diff)
fix duplicated command registrations
-rw-r--r--src/commands/optional/teawiespam.rs2
-rw-r--r--src/main.rs1
2 files changed, 1 insertions, 2 deletions
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
},