Fox-V3
Fox-V3 copied to clipboard
[Bug] Last seen
Describe the bug Running the command on an online user results in an error To Reproduce
- Load cog 'lseen'
- Run command 'lseen @online user'
- See error
Expected behavior User is currently online/User was last offline
Screenshots or Error Messages
Exception in command 'lseen'
Traceback (most recent call last):
File "/home/pi/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
ret = await coro(*args, **kwargs)
File "/home/pi/.local/share/Red-DiscordBot/data/test/cogs/CogManager/cogs/lseen/lseen.py", line 85, in lseen
await ctx.send(embed=embed)
File "/home/pi/redenv/lib/python3.8/site-packages/redbot/core/commands/context.py", line 93, in send
return await super().send(content=content, **kwargs)
File "/home/pi/redenv/lib/python3.8/site-packages/discord/abc.py", line 1064, in send
data = await state.http.send_message(channel.id, content, tts=tts, embed=embed,
File "/home/pi/redenv/lib/python3.8/site-packages/discord/http.py", line 254, in request
raise HTTPException(r, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.description: This field is required
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/pi/redenv/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
await ctx.command.invoke(ctx)
File "/home/pi/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
await injected(*ctx.args, **ctx.kwargs)
File "/home/pi/redenv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: HTTPException: 400 Bad Request (error code: 50035): Invalid Form Body
In embed.description: This field is required