1@bot.command()
2async def get_channel(ctx, *, given_name=None):
3 for channel in ctx.guild.channels:
4 if channel.name == given_name:
5 wanted_channel_id = channel.id
6
7 await ctx.send(wanted_channel_id) # this is just to check
8
1channel = discord.utils.get(server.channels, name="Channel_name_here", type="ChannelType.voice")
1channel_names = ['channel1', 'channel2', 'channel3']
2for ch in channel_names:
3 channel = discord.get.utils(server.channels, name=ch, type="ChannelType.voice")
4 full(channel)