localize Guild Or Null
fun TextLocalizationContext.localizeGuildOrNull(localizationPath: String, vararg entries: PairEntry): String?(source)
Localizes the provided path, with the guild's locale, or returns null
if the path does not exist.
This will localize to en_US
if the Guild does not have the COMMUNITY
feature flag.
Parameters
localization Path
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