discord.py find channel by id

46

channel = discord.utils.get(server.channels, name="Channel_name_here", type="ChannelType.voice") 
channel_names = ['channel1', 'channel2', 'channel3']
for ch in channel_names:
    channel = discord.get.utils(server.channels, name=ch, type="ChannelType.voice")
    full(channel)

Comments

Submit
0 Comments