Class SelfUpdateMobileEvent

  • All Implemented Interfaces:
    UpdateEvent<SelfUser,​java.lang.Boolean>

    public class SelfUpdateMobileEvent
    extends GenericSelfUpdateEvent<java.lang.Boolean>
    Indicates that you login to your discord account with a mobile device for the first time. (client-only)

    Can be used to detect that your account was used with a mobile device.

    Identifier: mobile

    • Constructor Detail

      • SelfUpdateMobileEvent

        public SelfUpdateMobileEvent​(JDA api,
                                     long responseNumber,
                                     boolean wasMobile)
    • Method Detail

      • wasMobile

        public boolean wasMobile()
        The old mobile status. Should always be false.
        Returns:
        The mobile status.