Answer the question
In order to leave comments, you need to log in
How to get user status?
I want to know the status of the user who sends messages to the discord server.
I know that I can do it somehow through discord.Status and discord.Member like
ctx.author.status, but I don't know exactly how to do it... tell me how to find out the current user status. I want to know the status by type Online, Do not disturb, Invisible and also custom...
Answer the question
In order to leave comments, you need to log in
Something like this:
t = member.status
if t == discord.Status.online:
d = "<:online2:842130462038425653> В сети"
elif t == discord.Status.offline:
d = "<:offline2:842130438209536000> Не в сети"
elif t == discord.Status.idle:
d = "<:away:842130479339667497> Не активен"
elif t == discord.Status.dnd:
d = "<:dnd2:842130417406181436> Не беспокоить"
elif t == discord.Status.streaming:
d = "<:streaming:846048619571314719> Стримит"
После просто выводит переменную {d} в каком-то из ембедов и все.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question