LocalizableInteractionHook

Allows sending follow-ups to interactions using localized strings, registered from bundles in BLocalizationConfig.responseBundles.

See LocalizableInteraction for further configuration.

See also

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:Nonnull
open val id: String
Link copied to clipboard
abstract val idLong: Long
Link copied to clipboard
@get:Nonnull
abstract val interaction: Interaction
Link copied to clipboard
open val isExpired: Boolean
Link copied to clipboard
@get:Nonnull
abstract val jda: JDA
Link copied to clipboard

The localizable interaction attached to this hook.

Link copied to clipboard
@get:Nonnull
open val timeCreated: OffsetDateTime
Link copied to clipboard
@get:Nullable
abstract override val token: String?

Functions

Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun deleteMessageById(messageId: Long): WebhookMessageDeleteAction
@Nonnull
@CheckReturnValue
abstract fun deleteMessageById(@Nonnull p0: String): WebhookMessageDeleteAction
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun deleteOriginal(): RestAction<Void?>
Link copied to clipboard
@CheckReturnValue
abstract fun editGuild(localizationPath: String, vararg entries: Localization.Entry): WebhookMessageEditAction<Message>

Edits the original message with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard

Edits the original message with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard
@CheckReturnValue
abstract fun editLocalized(locale: Locale, localizationPath: String, vararg entries: Localization.Entry): WebhookMessageEditAction<Message>
@CheckReturnValue
open fun editLocalized(locale: DiscordLocale, localizationPath: String, vararg entries: Localization.Entry): WebhookMessageEditAction<Message>

Edits the original message with the localized message at the following path, using the provided locale and parameters.

Link copied to clipboard

Edits the text content of the original message with a localized message.

Edits the original message with the localized message at the following path, using the provided locale and parameters.

Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editMessageAttachmentsById(messageId: Long, @Nonnull attachments: Collection<out AttachedFile?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageAttachmentsById(messageId: Long, @Nonnull vararg attachments: AttachedFile?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun editMessageAttachmentsById(@Nonnull p0: String, @Nonnull p1: Collection<out AttachedFile?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageAttachmentsById(@Nonnull messageId: String, @Nonnull vararg attachments: AttachedFile?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editMessageById(messageId: Long, @Nonnull content: String): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageById(messageId: Long, @Nonnull message: MessageEditData): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun editMessageById(@Nonnull p0: String, @Nonnull p1: String): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun editMessageById(@Nonnull p0: String, @Nonnull p1: MessageEditData): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editMessageComponentsById(messageId: Long, @Nonnull components: Collection<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageComponentsById(messageId: Long, @Nonnull vararg components: MessageTopLevelComponent?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageComponentsById(messageId: Long, @Nonnull tree: ComponentTree<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun editMessageComponentsById(@Nonnull p0: String, @Nonnull p1: Collection<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageComponentsById(@Nonnull messageId: String, @Nonnull vararg components: MessageTopLevelComponent?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageComponentsById(@Nonnull messageId: String, @Nonnull tree: ComponentTree<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editMessageEmbedsById(messageId: Long, @Nonnull embeds: Collection<out MessageEmbed?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageEmbedsById(messageId: Long, @Nonnull vararg embeds: MessageEmbed?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun editMessageEmbedsById(@Nonnull p0: String, @Nonnull p1: Collection<out MessageEmbed?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageEmbedsById(@Nonnull messageId: String, @Nonnull vararg embeds: MessageEmbed?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editMessageFormatById(messageId: Long, @Nonnull format: String, @Nonnull vararg args: Any?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editMessageFormatById(@Nonnull messageId: String, @Nonnull format: String, @Nonnull vararg args: Any?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editOriginal(@Nonnull content: String): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editOriginal(@Nonnull message: MessageEditData): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editOriginalAttachments(@Nonnull attachments: Collection<out AttachedFile?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editOriginalAttachments(@Nonnull vararg attachments: AttachedFile?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editOriginalComponents(@Nonnull components: Collection<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editOriginalComponents(@Nonnull vararg components: MessageTopLevelComponent?): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editOriginalComponents(@Nonnull tree: ComponentTree<out MessageTopLevelComponent?>): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editOriginalEmbeds(@Nonnull embeds: Collection<out MessageEmbed?>): WebhookMessageEditAction<Message?>
@Nonnull
@CheckReturnValue
open fun editOriginalEmbeds(@Nonnull vararg embeds: MessageEmbed?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun editOriginalFormat(@Nonnull format: String, @Nonnull vararg args: Any?): WebhookMessageEditAction<Message?>
Link copied to clipboard
@CheckReturnValue
abstract fun editUser(localizationPath: String, vararg entries: Localization.Entry): WebhookMessageEditAction<Message>

Edits the original message with the localized message at the following path, using the user's locale and provided parameters.

Link copied to clipboard

Edits the original message with the localized message at the following path, using the user's locale and provided parameters.

Link copied to clipboard
Link copied to clipboard

Replaces the entire original message with a localized message.

Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun retrieveMessageById(@Nonnull p0: String): WebhookMessageRetrieveAction
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun retrieveOriginal(): RestAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun sendFiles(@Nonnull p0: Collection<out FileUpload?>): WebhookMessageCreateAction<Message?>
@Nonnull
@CheckReturnValue
open fun sendFiles(@Nonnull vararg files: FileUpload?): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@CheckReturnValue
abstract fun sendGuild(localizationPath: String, vararg entries: Localization.Entry): WebhookMessageCreateAction<Message>

Sends a follow-up with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard

Sends a follow-up with the localized message at the following path, using the guild's locale and provided parameters.

Link copied to clipboard
@CheckReturnValue
abstract fun sendLocalized(locale: Locale, localizationPath: String, vararg entries: Localization.Entry): WebhookMessageCreateAction<Message>
@CheckReturnValue
open fun sendLocalized(locale: DiscordLocale, localizationPath: String, vararg entries: Localization.Entry): WebhookMessageCreateAction<Message>

Sends a follow-up with the localized message at the following path, using the provided locale and parameters.

Link copied to clipboard

Sends a localized followup message to this interaction hook.

Sends a follow-up with the localized message at the following path, using the provided locale and parameters.

Link copied to clipboard

Sends a localized ephemeral followup message to this interaction hook.

Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun sendMessage(@Nonnull p0: String): WebhookMessageCreateAction<Message?>
@Nonnull
@CheckReturnValue
abstract fun sendMessage(@Nonnull p0: MessageCreateData): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun sendMessageComponents(@Nonnull p0: Collection<out MessageTopLevelComponent?>): WebhookMessageCreateAction<Message?>
@Nonnull
@CheckReturnValue
open fun sendMessageComponents(@Nonnull tree: ComponentTree<out MessageTopLevelComponent?>): WebhookMessageCreateAction<Message?>
@Nonnull
@CheckReturnValue
open fun sendMessageComponents(@Nonnull component: MessageTopLevelComponent, @Nonnull vararg other: MessageTopLevelComponent?): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun sendMessageEmbeds(@Nonnull p0: Collection<out MessageEmbed?>): WebhookMessageCreateAction<Message?>
@Nonnull
@CheckReturnValue
open fun sendMessageEmbeds(@Nonnull embed: MessageEmbed, @Nonnull vararg embeds: MessageEmbed?): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
open fun sendMessageFormat(@Nonnull format: String, @Nonnull vararg args: Any?): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@Nonnull
@CheckReturnValue
abstract fun sendMessagePoll(@Nonnull p0: MessagePollData): WebhookMessageCreateAction<Message?>
Link copied to clipboard
@CheckReturnValue
abstract fun sendUser(localizationPath: String, vararg entries: Localization.Entry): WebhookMessageCreateAction<Message>

Sends a follow-up with the localized message at the following path, using the user's locale and provided parameters.

Link copied to clipboard

Sends a follow-up with the localized message at the following path, using the user's locale and provided parameters.

Link copied to clipboard
@Nonnull
abstract fun setEphemeral(p0: Boolean): InteractionHook