replace Localized
fun IMessageEditCallback.replaceLocalized(context: LocalizationContext, localizationPath: String, vararg entries: PairEntry): MessageEditCallbackAction(source)
Replaces the entire original message with a localized message.
Parameters
localization Path
The path of the localization template, prefixed with localizationPrefix unless starting with /
entries
The entries to fill the template with
See also
fun InteractionHook.replaceLocalized(context: LocalizationContext, localizationPath: String, vararg entries: PairEntry): WebhookMessageEditAction<Message>(source)
Replaces the entire original message with a localized message.
Parameters
localization Path
The path of the localization template, prefixed with localizationPrefix unless starting with /
entries
The entries to fill the template with
See also
fun Message.replaceLocalized(context: LocalizationContext, localizationPath: String, vararg entries: PairEntry): MessageEditAction(source)
Replaces the entire message with a localized message.
Parameters
localization Path
The path of the localization template, prefixed with localizationPrefix unless starting with /
entries
The entries to fill the template with