From 589238570aded18413b5b6498d60b5e8ec7d1c76 Mon Sep 17 00:00:00 2001 From: loki5512344 Date: Fri, 11 Sep 2026 12:54:30 +0200 Subject: [PATCH] fix: drop prefix_command from /poll and /remind Multi-word String params can't be parsed by poise's whitespace-based prefix parser without quoting, causing 'Too many arguments' on !poll and !remind. Slash command already handles this correctly via structured params, so prefix mode is dropped for these two. --- src/feature/poll/command.rs | 2 +- src/feature/remind/command.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/feature/poll/command.rs b/src/feature/poll/command.rs index ebda16a..a01a6a3 100644 --- a/src/feature/poll/command.rs +++ b/src/feature/poll/command.rs @@ -7,7 +7,7 @@ use serenity::all::{CreateEmbed, CreateEmbedFooter, ReactionType}; const NUMBER_EMOJIS: [&str; 10] = ["1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟"]; /// `/poll ` - options separated by `;` (2-10). Adds number reactions. -#[poise::command(slash_command, prefix_command, guild_only)] +#[poise::command(slash_command, guild_only)] pub async fn poll( ctx: Ctx<'_>, #[description = "Poll question"] question: String, diff --git a/src/feature/remind/command.rs b/src/feature/remind/command.rs index 3841226..47cedf5 100644 --- a/src/feature/remind/command.rs +++ b/src/feature/remind/command.rs @@ -19,7 +19,7 @@ fn parse_duration(input: &str) -> Option { } /// `/remind ` - e.g. `/remind 10m stretch break`. Max 7 days. -#[poise::command(slash_command, prefix_command, guild_only)] +#[poise::command(slash_command, guild_only)] pub async fn remind( ctx: Ctx<'_>, #[description = "Duration, e.g. 30s, 10m, 2h, 1d"] duration: String,