@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
答案 0 :(得分:0)
@commands.command()
async def profile(self, ctx, *, user: discord.Member = None):
"""Profile"""
if user == None:
user = ctx.author
server = ctx.guild
# this for example prints if the user has discord nitro
print(await ctx.author.profile().nitro)
个人资料包含here
的信息答案 1 :(得分:0)
我找到了答案。从github安装最新的discord.py
*args[1000]