Skip to content

Commit

Permalink
It works
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacMarovitz committed Nov 14, 2023
1 parent b4608fd commit 2f16a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ impl EventHandler for Handler {
}

if msg.content.starts_with("~say ") {
if msg.author.has_role(&context, msg.guild_id, MOD_ROLE) {
if msg.author.has_role(&context, msg.guild_id.unwrap().0, MOD_ROLE).await.unwrap() {
let message = msg.content.replace("~say ", "");
let _ = msg.channel_id.say(&context, message).await;
let _ = msg.delete(&context).await;
Expand Down

0 comments on commit 2f16a61

Please sign in to comment.