get channel from id discord.py
channel = client.get_channel(channel_id)
get channel from id discord.py
channel = client.get_channel(channel_id)
Discord py get channel ID by name
@bot.command()
async def get_channel(ctx, *, given_name=None):
for channel in ctx.guild.channels:
if channel.name == given_name:
wanted_channel_id = channel.id
await ctx.send(wanted_channel_id) # this is just to check
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