How to make a userinfo/whois command in discord bot (discord.py)

preview_player
Показать описание

Links -
Source -

My Github -

Discord -
Рекомендации по теме
Комментарии
Автор

discord.py went through some major update, due to that some part of code may face issues and show errors, nothing to worry about, feel free to join my discord server and proceed with queries.

codewithquill
Автор

after async def whois(ctx, user: disnake.Member = None):, add this:
if user == None:
user = ctx.author
this way, even if a user doesnt ping anyone, itll display their info

AAAaAAae
Автор

in the case of not having a role, it does not show the user's information
how would this be done?

juegosretro