Package net.dv8tion.jda.core.events.self
Class SelfUpdateNitroEvent
- java.lang.Object
-
- net.dv8tion.jda.core.events.Event
-
- net.dv8tion.jda.core.events.self.GenericSelfUpdateEvent<java.lang.Boolean>
-
- net.dv8tion.jda.core.events.self.SelfUpdateNitroEvent
-
- All Implemented Interfaces:
UpdateEvent<SelfUser,java.lang.Boolean>
public class SelfUpdateNitroEvent extends GenericSelfUpdateEvent<java.lang.Boolean>
Indicates that the current user subscribed to nitro or the active nitro subscription ran out. (client-only)Can be used to track the state of the nitro subscription.
Identifier:
nitro
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
IDENTIFIER
-
Constructor Summary
Constructors Constructor Description SelfUpdateNitroEvent(JDA api, long responseNumber, boolean wasNitro)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
wasNitro()
Whether or not a nitro subscription used to be active before.-
Methods inherited from class net.dv8tion.jda.core.events.self.GenericSelfUpdateEvent
getEntity, getNewValue, getOldValue, getPropertyIdentifier, getSelfUser, toString
-
Methods inherited from class net.dv8tion.jda.core.events.Event
getJDA, getResponseNumber
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.dv8tion.jda.core.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final java.lang.String IDENTIFIER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelfUpdateNitroEvent
public SelfUpdateNitroEvent(JDA api, long responseNumber, boolean wasNitro)
-
-