|
@@ -192,7 +192,7 @@ async fn skip(ctx: &Context, msg: &Message) -> CommandResult {
|
|
let guild = msg.guild(&ctx.cache).ok_or("aaa".to_string())?;
|
|
let guild = msg.guild(&ctx.cache).ok_or("aaa".to_string())?;
|
|
let state = guild.voice_states.get(&msg.author.id).ok_or("aaa")?;
|
|
let state = guild.voice_states.get(&msg.author.id).ok_or("aaa")?;
|
|
let channel = guild.channels.get(&state.channel_id.unwrap());
|
|
let channel = guild.channels.get(&state.channel_id.unwrap());
|
|
- channel.unwrap().members(&ctx.cache).unwrap().len()
|
|
|
|
|
|
+ channel.unwrap().members(&ctx.cache).unwrap().len() - 1 // Do not count bot user
|
|
};
|
|
};
|
|
|
|
|
|
if let Err(why) = AudioState::vote_skip(audio_state, msg.author.clone(), total_users).await {
|
|
if let Err(why) = AudioState::vote_skip(audio_state, msg.author.clone(), total_users).await {
|