From aaf848fbe8065811d5b1da022e0977835c8ba7d6 Mon Sep 17 00:00:00 2001 From: Jacherr Date: Tue, 30 Jul 2024 23:40:18 +0100 Subject: [PATCH] arguments not required on tags, send processing defer --- assyst-core/src/command/misc/tag.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/assyst-core/src/command/misc/tag.rs b/assyst-core/src/command/misc/tag.rs index 535387a..45787b3 100644 --- a/assyst-core/src/command/misc/tag.rs +++ b/assyst-core/src/command/misc/tag.rs @@ -397,12 +397,14 @@ pub async fn search(ctxt: CommandCtxt<'_>, page: u64, query: Word, user: Option< access = Availability::Public, category = Category::Misc, usage = "[tag name] ", - examples = ["test", "whatever"] + examples = ["test", "whatever"], + send_processing = true )] -pub async fn default(ctxt: CommandCtxt<'_>, tag_name: Word, arguments: Vec) -> anyhow::Result<()> { +pub async fn default(ctxt: CommandCtxt<'_>, tag_name: Word, arguments: Option>) -> anyhow::Result<()> { let Some(guild_id) = ctxt.data.guild_id else { bail!("Tags can only be used in guilds.") }; + let arguments = arguments.unwrap_or_default(); let tag = Tag::get( &ctxt.assyst().database_handler,