From 53f6286d3ddc74c9f3ec33e85cb053dac053d300 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sun, 20 Sep 2020 15:58:07 -0400 Subject: [PATCH] Core: put role over message in choose --- youmubot-core/src/community/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youmubot-core/src/community/mod.rs b/youmubot-core/src/community/mod.rs index e554cee..06bfc7a 100644 --- a/youmubot-core/src/community/mod.rs +++ b/youmubot-core/src/community/mod.rs @@ -31,17 +31,17 @@ struct Community; #[command] #[description = r"👑 Randomly choose an active member and mention them! Note that only online/idle users in the channel are chosen from."] -#[usage = "[title = the chosen one] / [limited roles = everyone online]"] +#[usage = "[limited roles = everyone online] / [title = the chosen one]"] #[example = "the strongest in Gensokyo"] #[bucket = "community"] #[max_args(2)] pub async fn choose(ctx: &Context, m: &Message, mut args: Args) -> CommandResult { + let role = args.find::().ok(); let title = if args.is_empty() { "the chosen one".to_owned() } else { args.single::()? }; - let role = args.single::().ok(); let users: Result, Error> = { let guild = m.guild(&ctx).await.unwrap();