📌  相关文章
📜  discord.py 从 id 获取频道对象 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:20.156000             🧑  作者: Mango

代码示例5
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}")