Skip to content

Commit

Permalink
Add required cache flags on UserUpdateActivityOrderEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
freya022 committed Apr 21, 2024
1 parent 87848fc commit f98bd83
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@
import net.dv8tion.jda.api.entities.Activity;
import net.dv8tion.jda.api.entities.Guild;
import net.dv8tion.jda.api.entities.Member;
import net.dv8tion.jda.api.events.annotations.RequiredCacheFlags;
import net.dv8tion.jda.api.events.annotations.RequiredIntents;
import net.dv8tion.jda.api.events.annotations.RequiresCachedMember;
import net.dv8tion.jda.api.requests.GatewayIntent;
import net.dv8tion.jda.api.utils.cache.CacheFlag;

import javax.annotation.Nonnull;
import java.util.List;
Expand All @@ -46,6 +48,7 @@
* need to have the old member cached to compare against.
*/
@RequiredIntents(always = GatewayIntent.GUILD_PRESENCES)
@RequiredCacheFlags(always = CacheFlag.ACTIVITY)
@RequiresCachedMember
public class UserUpdateActivityOrderEvent extends GenericUserUpdateEvent<List<Activity>> implements GenericUserPresenceEvent
{
Expand Down

0 comments on commit f98bd83

Please sign in to comment.