【发布时间】:2022-04-26 15:06:56
【问题描述】:
我正在 python 3.8.6 上使用 discord.py 制作一个不和谐机器人。
我的其他功能,例如on_ready 和其他命令,可以正常工作。然而,on_member_join 在成员加入时不会被调用。
from discord.ext import commands
bot = commands.Bot(command_prefix =".")
@bot.event
async def on_ready():
print('logged on salaud')
@bot.event
async def on_member_join(member):
print("test")
bot.run("TOKEN")
为什么没有调用on_member_join,我该如何解决这个问题?
【问题讨论】:
标签: python discord discord.py