Class GenericInteractionCreateEvent

    • Constructor Detail

      • GenericInteractionCreateEvent

        public GenericInteractionCreateEvent​(@Nonnull
                                             JDA api,
                                             long responseNumber,
                                             @Nonnull
                                             Interaction interaction)
    • Method Detail

      • getInteraction

        @Nonnull
        public Interaction getInteraction()
        The Interaction instance.
        Note that this event is a delegate which implements the same interface.
        Returns:
        The Interaction
      • getToken

        @Nonnull
        public java.lang.String getToken()
        Description copied from interface: Interaction
        The interaction token used for responding to an interaction.
        Specified by:
        getToken in interface Interaction
        Returns:
        The interaction token
      • getGuild

        @Nullable
        public Guild getGuild()
        Description copied from interface: Interaction
        The Guild this interaction happened in.
        This is null in direct messages.
        Specified by:
        getGuild in interface Interaction
        Returns:
        The Guild or null
      • getChannel

        @Nullable
        public AbstractChannel getChannel()
        Description copied from interface: Interaction
        The channel this interaction happened in.
        This is currently never null, but might be nullable in the future.
        Specified by:
        getChannel in interface Interaction
        Returns:
        The channel or null if this interaction is not from a channel context
      • getMember

        @Nullable
        public Member getMember()
        Description copied from interface: Interaction
        The Member who caused this interaction.
        This is null if the interaction is not from a guild.
        Specified by:
        getMember in interface Interaction
        Returns:
        The Member
      • getIdLong

        public long getIdLong()
        Description copied from interface: ISnowflake
        The Snowflake id of this entity. This is unique to every entity and will never change.
        Specified by:
        getIdLong in interface ISnowflake
        Returns:
        Long containing the Id.