Reputation: 309
I'm getting a In embed.fields.1.value: This field is required
error when I try to embed something but the error never happened before
The code I'm trying to use is a user info command:
@commands.command()
async def uinfo(self, ctx, member:discord.Member=None):
member=ctx.author if not member else member
roles=[role for role in member.roles]
embed=discord.Embed(colour=discord.Colour.gold())
embed.set_author(name=f"User Info ~ {member}")
embed.add_field(name="Their ID: ", value=member.id, inline=False)
embed.add_field(name="Joined server at: ", value=member.joined_at.strftime("%a, %#d %B %Y, %I:%M %p UTC"), inline=False)
embed.add_field(name="Joined discord at: ", value=member.created_at.strftime("%a, %#d %B %Y, %I:%M %p UTC"), inline=False)
embed.add_field(name=f"Their roles: ", value=" ".join([role.mention for role in roles]), inline=False)
embed.add_field(name="Highest role: ", value=member.top_role.mention, inline=False)
embed.add_field(name="Is Discord bot?", value=member.bot, inline=False)
embed.set_footer(text='Multi-Galaxy | Coded by Dr Jakaboii#2019')
await ctx.send(embed=embed)
The error I'm getting is:
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 BAD REQUEST (error code: 50035): Invalid Form Body
In embed.fields.1.value: This field is required
In embed.fields.2.value: This field is required
Upvotes: 0
Views: 8879