Class Event

    • Constructor Detail

      • Event

        public Event​(@Nonnull
                     JDA api,
                     long responseNumber)
        Creates a new Event from the given JDA instance
        Parameters:
        api - Current JDA instance
        responseNumber - The sequence number for this event
        See Also:
        Event(net.dv8tion.jda.api.JDA)
      • Event

        public Event​(@Nonnull
                     JDA api)
        Creates a new Event from the given JDA instance
        Uses the current JDA.getResponseTotal() as sequence
        Parameters:
        api - Current JDA instance
    • Method Detail

      • getJDA

        @Nonnull
        public JDA getJDA()
        Description copied from interface: GenericEvent
        The current JDA instance corresponding to this Event
        Specified by:
        getJDA in interface GenericEvent
        Returns:
        The corresponding JDA instance
      • getResponseNumber

        public long getResponseNumber()
        Description copied from interface: GenericEvent
        The current sequence for this event.
        This can be used to keep events in order when making sequencing system.
        Specified by:
        getResponseNumber in interface GenericEvent
        Returns:
        The current sequence number for this event