discord py channel by id code example
Example 1: discord.py fetch channel
await client.fetch_channel(channelId)
Example 2: discord py fetch channel by id
channel = discord.utils.get(ctx.guild.channels, name=given_name)
channel_id = channel.id
await client.fetch_channel(channelId)
channel = discord.utils.get(ctx.guild.channels, name=given_name)
channel_id = channel.id