Class EmoteUpdateRolesEvent

  • All Implemented Interfaces:
    UpdateEvent<Emote,​java.util.List<Role>>

    public class EmoteUpdateRolesEvent
    extends GenericEmoteUpdateEvent<java.util.List<Role>>
    Indicates that the role whitelist for an Emote changed.

    Can be used to retrieve the old role whitelist

    Identifier: roles

    • Constructor Detail

      • EmoteUpdateRolesEvent

        public EmoteUpdateRolesEvent​(JDA api,
                                     long responseNumber,
                                     Emote emote,
                                     java.util.List<Role> oldRoles)
    • Method Detail

      • getOldRoles

        public java.util.List<Role> getOldRoles()
        The old role whitelist
        Returns:
        The old role whitelist
      • getNewRoles

        public java.util.List<Role> getNewRoles()
        The new role whitelist
        Returns:
        The new role whitelist