How to get the sum and the names of all the users from all voice channels Disocrd?
I use : import discord I need to get from each voice channel amount all users and then get their names (usernames). How to do it? You need to access the voice channel object. I recommend you use the voice channel's id. The command could look as follows: @client.command(pass_context = True) async def vcmembers(ctx, voice_channel_id): #First getting the voice channel object voice_channel = discord.utils.get(ctx.message.server.channels, id = voice_channel_id) if not voice_channel: return await client.say("That is not a valid voice channel.") members = voice_channel.voice_members member_names = '