remeber to actually await message handlers
This commit is contained in:
parent
e18212fd09
commit
addf075c8f
@ -25,14 +25,14 @@ pub async fn handle_msg(ctx: &serenity::Context, msg: &serenity::Message) -> Res
|
||||
|
||||
|
||||
if uusr.is_none() {
|
||||
let _ = msg.reply(&ctx.http, "Failed to create ID for you, please contact a sysadmin.");
|
||||
let _ = msg.reply(&ctx.http, "Failed to create ID for you, please contact a sysadmin.").await;
|
||||
return Ok(())
|
||||
}
|
||||
}
|
||||
let mut usr = uusr.unwrap();
|
||||
|
||||
if usr.is_banned {
|
||||
let _ = msg.reply(&ctx.http, "You have been banned from using this bot.");
|
||||
let _ = msg.reply(&ctx.http, "You have been banned from using this bot.").await;
|
||||
return Ok(())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user