Skip to content

Commit

Permalink
arguments not required on tags, send processing defer
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacherr committed Jul 30, 2024
1 parent e4e2247 commit aaf848f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions assyst-core/src/command/misc/tag.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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] <arguments...>",
examples = ["test", "whatever"]
examples = ["test", "whatever"],
send_processing = true
)]
pub async fn default(ctxt: CommandCtxt<'_>, tag_name: Word, arguments: Vec<Word>) -> anyhow::Result<()> {
pub async fn default(ctxt: CommandCtxt<'_>, tag_name: Word, arguments: Option<Vec<Word>>) -> 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,
Expand Down

0 comments on commit aaf848f

Please sign in to comment.