Fixed userinfo command in converters.py in examples not functioning correctly #58

Merged
Astrea49 merged 4 commits from converter-example-fix into 2.0 2021-09-21 18:52:55 +00:00
Showing only changes of commit 634f4f9420 - Show all commits

View File

@@ -30,6 +30,7 @@ async def userinfo(ctx: commands.Context, user: discord.User):
avatar = user.display_avatar.url
await ctx.send(f"User found: {user_id} -- {username}\n{avatar}")
@userinfo.error
async def userinfo_error(ctx: commands.Context, error: commands.CommandError):
# if the conversion above fails for any reason, it will raise `commands.BadArgument`