Skip to content

Commit

Permalink
Remove printing what users are in voice channel to avoid rate limit f…
Browse files Browse the repository at this point in the history
…ailing
  • Loading branch information
TorstenCScholz committed Sep 9, 2016
1 parent 2f07eae commit 4c86e20
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ fn sync_voice_user_state(has_synced: &mut bool, voice_users: &mut HashSet<UserId
// TODO: Why do I have to clone here? (otherwise: cannot move out of borrowed content [E0507])
for voice_state in server.clone().voice_states {
if voice_state.channel_id.unwrap() == voice_channel_id {
let member = discord.get_member(server_id, voice_state.user_id).unwrap();
println!("User is in voice channel: {}", member.user.name);

voice_users.insert(voice_state.user_id);
}
}
Expand Down

0 comments on commit 4c86e20

Please sign in to comment.