Interface GenericUserPresenceEvent
-
- All Superinterfaces:
GenericEvent
- All Known Implementing Classes:
UserActivityEndEvent
,UserActivityStartEvent
,UserUpdateActivitiesEvent
,UserUpdateActivityOrderEvent
,UserUpdateOnlineStatusEvent
public interface GenericUserPresenceEvent extends GenericEvent
Indicates that the presence of aUser
has changed.
Users don't have presences directly, this is fired when aMember
from aGuild
changes their presence.Can be used to track the presence updates of members.
Requirements
These events require the
GUILD_PRESENCES
intent to be enabled.createDefault(String)
andcreateLight(String)
disable this by default!Additionally, these events require the
MemberCachePolicy
to cache the updated members. Discord does not specifically tell us about the updates, but merely tells us the member was updated and gives us the updated member object. In order to fire a specific event like this we need to have the old member cached to compare against.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Guild
getGuild()
Guild in which the presence has changed.Member
getMember()
Member who changed their presence.-
Methods inherited from interface net.dv8tion.jda.api.events.GenericEvent
getJDA, getResponseNumber
-
-