@commands.command()async def profile(self, ctx, *, user: discord.Member = None): """Profile""" if user == None: user = ctx.author server = ctx.guild #error in this print(ctx.author.public_flags) # ..........我想知道用户示例的公共标志:Hypesquad balance
2 回答
catspeake
TA贡献1111条经验 获得超0个赞
我找到了答案。从 github 安装最新的 discord.py
@commands.command()
async def profile(self, ctx, *, user: discord.Member = None):
"""Profile"""
if user == None:
user = ctx.author
server = ctx.guild
print(ctx.author.public_flags.all())
..........
添加回答
举报
0/150
提交
取消