[英]discord.py on channel create
當有人創建文本/語音頻道時,discord.py 中是否會觸發一個事件?
我希望機器人了解何時創建頻道,以便它可以發布日志
@bot.event
是的,有2個事件:
@bot.event
async def on_guild_channel_create(channel):
...
@bot.event
async def on_private_channel_create(channel): # called when a DM channel is created
...
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.