@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條經(jīng)驗 獲得超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
提交
取消