Bot read people's custom status and if it says some specific sentence apply a role! #6796
-
How can i do that? |
Beta Was this translation helpful? Give feedback.
Answered by
almostSouji
Oct 25, 2021
Replies: 1 comment
-
Custom status is an activity and part of A message author's custom status could be accessed as: const cs = message.member.presence.activities.find(activity => activity.type === "CUSTOM") If you want to listen to updates in guild member's presences, you can do so via the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Jiralite
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Custom status is an activity and part of
GuildMember#presence
>Presence#activities
with the.type
CUSTOM
.A message author's custom status could be accessed as:
If you want to listen to updates in guild member's presences, you can do so via the
Client#presenceUpdate
event. Note that presences are locked behind a privileged intent.