Class UserUpdateActivitiesEvent

All Implemented Interfaces:
GenericEvent, UpdateEvent<User,List<Activity>>, GenericUserPresenceEvent

public class UserUpdateActivitiesEvent extends GenericUserUpdateEvent<List<Activity>> implements GenericUserPresenceEvent
Indicates that the activities of a guild member changed.

This is fired after a sequence of UserActivityStartEvents and UserActivityEndEvents are fired and can be used to handle the resulting list of activities for the member.

Identifier: activities


This event requires the GUILD_PRESENCES intent to be enabled.
createDefault(String) and createLight(String) disable this by default!

Additionally, this event requires 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.

This also requires CacheFlag.ACTIVITY to be enabled. You can enable the cache flag with enableCache(CacheFlag.ACTIVITY).