mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
One round of cargo clippy
This commit is contained in:
parent
4bdab3cefb
commit
4a1853532a
6 changed files with 9 additions and 14 deletions
|
@ -67,7 +67,7 @@ pub async fn choose(ctx: &Context, m: &Message, mut args: Args) -> CommandResult
|
|||
let channel = m.channel_id.to_channel(&ctx).await?;
|
||||
if let Channel::Guild(channel) = channel {
|
||||
Ok(channel
|
||||
.members(&ctx)?
|
||||
.members(ctx)?
|
||||
.into_iter()
|
||||
.filter(|v| !v.user.bot) // Filter out bots
|
||||
.filter(|v| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue