【发布时间】:2021-01-11 21:08:00
【问题描述】:
@client.command()
async def nitro(ctx):
nitro = ctx.message.author.discord.profile.nitro
embed = discord.Embed(title=f":house_with_garden: {ctx.message.author} - Stats",
description=f"Nitro: {nitro}",
color=discord.Colour.green())
await ctx.send(embed=embed)
每当我运行此程序时,我都会收到此错误:
"discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Member' object has no attribute 'discord'"
我想在我输入时说明用户是否有硝基:.nitro @username
【问题讨论】:
标签: python discord.py