कैसे प्राप्त करने के लिए वर्तमान चैनल का नाम अजगर में कलह बीओटी
कोड उदाहरण
1
0
कलह py पाने चैनल आईडी नाम से
@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