Class 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

    • Constructor Detail

      • SelfUpdateNitroEvent

        public SelfUpdateNitroEvent​(JDA api,
                                    long responseNumber,
                                    boolean wasNitro)
    • Method Detail

      • wasNitro

        public boolean wasNitro()
        Whether or not a nitro subscription used to be active before.
        Returns:
        The old nitro subscription status.