discord.py get channel id by channel name
channel = discord.utils.get(server.channels, name="Channel_name_here", type="ChannelType.voice")
discord.py get channel id by channel name
channel = discord.utils.get(server.channels, name="Channel_name_here", type="ChannelType.voice")
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)
discord.py find channel by id
channel_id = 747076221484924998 # must be an int and a valid channel id
channel = bot.get_channel(channel_id)
await ctx.send(f"The given channel is {channel.mention} with the id {channel.id}")
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us