Package net.dv8tion.jda.api.events.self
Class SelfUpdateNitroEvent
- java.lang.Object
-
- net.dv8tion.jda.api.events.Event
-
- net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent<Boolean>
-
- net.dv8tion.jda.api.events.self.SelfUpdateNitroEvent
-
- All Implemented Interfaces:
GenericEvent
,UpdateEvent<SelfUser,Boolean>
@Deprecated @ForRemoval @DeprecatedSince("4.2.0") public class SelfUpdateNitroEvent extends GenericSelfUpdateEvent<Boolean>
Deprecated.This is no longer supportedIndicates 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 String
IDENTIFIER
Deprecated.
-
Constructor Summary
Constructors Constructor Description SelfUpdateNitroEvent(JDA api, long responseNumber, boolean wasNitro)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Boolean
getNewValue()
Deprecated.The new valueBoolean
getOldValue()
Deprecated.The old valueboolean
wasNitro()
Deprecated.Whether or not a nitro subscription used to be active before.-
Methods inherited from class net.dv8tion.jda.api.events.self.GenericSelfUpdateEvent
getEntity, getPropertyIdentifier, getSelfUser, toString
-
Methods inherited from class net.dv8tion.jda.api.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.api.events.GenericEvent
getJDA, getResponseNumber
-
Methods inherited from interface net.dv8tion.jda.api.events.UpdateEvent
getEntityType
-
-
-
-
Field Detail
-
IDENTIFIER
public static final String IDENTIFIER
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
wasNitro
public boolean wasNitro()
Deprecated.Whether or not a nitro subscription used to be active before.- Returns:
- The old nitro subscription status.
-
getOldValue
@Nonnull public Boolean getOldValue()
Deprecated.Description copied from interface:UpdateEvent
The old value- Specified by:
getOldValue
in interfaceUpdateEvent<SelfUser,Boolean>
- Overrides:
getOldValue
in classGenericSelfUpdateEvent<Boolean>
- Returns:
- The old value
-
getNewValue
@Nonnull public Boolean getNewValue()
Deprecated.Description copied from interface:UpdateEvent
The new value- Specified by:
getNewValue
in interfaceUpdateEvent<SelfUser,Boolean>
- Overrides:
getNewValue
in classGenericSelfUpdateEvent<Boolean>
- Returns:
- The new value
-
-