public async Task Start(CommandContext ctx, TimeSpan duration) { var vnext = ctx.Client.GetVoiceNext(); var chn = ctx.Member?.VoiceState?.Channel; var vnc = vnext.GetConnection(ctx.Guild); if (vnc == null) { if (chn == null) { throw new InvalidOperationException("You need to be in a voice channel."); } await chn.ConnectAsync(); } var participants = chn.Users.ToList(); for (int i = 0; i < participants.Count; i++) { if (participants[i].IsBot == true) { participants.Remove(participants[i]); } } lg.setParticipants(participants, ctx.Guild, duration); }