remeber to actually await message handlers

This commit is contained in:
Hay1tsme 2023-11-16 23:03:58 -05:00
parent e18212fd09
commit addf075c8f

View File

@ -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(())
}