Skip to content

Commit

Permalink
Fix mention usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Desiders committed Aug 14, 2024
1 parent 759c8ad commit 5635f79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion telers/src/filters/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ impl Command<'_> {
} else if let Some(ref mention) = command.mention {
bot.send(GetMe {}).await.map(|user| {
// `unwrap` is safe here, because bot always has username
user.username.unwrap().eq(mention.as_ref())
user.username.unwrap().eq(mention)
})
} else {
Ok(true)
Expand Down

0 comments on commit 5635f79

Please sign in to comment.