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")