我正在尝试使用我的机器人设置服务器统计信息。我注意到一个问题,即 bot 说用户处于离线状态,即使他在线。我有意图,所以我不知道是什么导致了这个问题。 using comman user is online!
这里是意图:
intents = discord.Intents.default()
intents.members = True
和命令'状态':
@bot.command()
async def status(ctx, member: discord.Member):
await ctx.send(member.status)
先谢谢你!
答案 0 :(得分:0)
谢谢,我应该使用带有成员 Intent 的 Presence Intent!问题已关闭