localizeGuild

fun TextLocalizationContext.localizeGuild(localizationPath: String, vararg entries: PairEntry): String(source)

Localizes the provided path, with the guild's locale.

This will localize to en_US if the Guild does not have the COMMUNITY feature flag.

Parameters

localizationPath

The path of the localization template, prefixed with localizationPrefix

entries

The entries to fill the template with

See also

Throws

If the event did not happen in a Guild