Answers for "how to get the current channel id discord py"

5

get channel from id discord.py

channel = client.get_channel(channel_id)
Posted by: Guest on June-11-2021
1

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
Posted by: Guest on May-31-2021

Code answers related to "how to get the current channel id discord py"

Python Answers by Framework

Browse Popular Code Answers by Language