get a channel by id discord.py code example
Example 1: discord.py find voice channel by name
channel = discord.utils.find(lambda c: c.name == 'some name' and c.type == 'voice', some_list_of_channels)
if channel is not None:
print(channel.id)
Example 2: discord.py get channel id by channel name
channel = discord.utils.get(server.channels, name="Channel_name_here", type="ChannelType.voice")