Answers for "How do I make the code work using a channel name discord.py"

8

how to send a message in a specific channel discord.py

channel = client.get_channel(12324234183172)
await channel.send('hello')
Posted by: Guest on January-19-2020
0

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)
Posted by: Guest on June-07-2020

Code answers related to "How do I make the code work using a channel name discord.py"

Python Answers by Framework

Browse Popular Code Answers by Language