Class GenericInteractionCreateEvent

    • Constructor Detail

    • Method Detail

      • getToken

        @Nonnull
        public 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
      • getChannel

        @Nullable
        public Channel 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
      • getUserLocale

        @Nonnull
        public Locale getUserLocale()
        Description copied from interface: Interaction
        Returns the selected language of the invoking user.
        Specified by:
        getUserLocale in interface Interaction
        Returns:
        The language of the invoking user
      • getGuildLocale

        @Nonnull
        public Locale getGuildLocale()
        Description copied from interface: Interaction
        Returns the preferred language of the Guild.
        This is identical to getGuild().getLocale().
        Specified by:
        getGuildLocale in interface Interaction
        Returns:
        The preferred language of the Guild
      • 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.
      • isAcknowledged

        public boolean isAcknowledged()
        Description copied from interface: Interaction
        Whether this interaction has already been acknowledged.
        Each interaction can only be acknowledged once.
        Specified by:
        isAcknowledged in interface Interaction
        Returns:
        True, if this interaction has already been acknowledged