How do I make the code work using a channel name discord.py code example
Example 1: how to send a message in a specific channel discord.py
channel = client.get_channel(12324234183172)
await channel.send('hello')
Example 2: discord.py get channel id by channel name
channel_names = ['channel1', 'channel2', 'channel3']
for ch in channel_names:
channel = discord.get.utils(server.channels, name=ch, type="ChannelType.voice")
full(channel)