getLocale

Deprecated

Returns the Locale of the given Guild, will be null for a global context This might be used for localization such as in default messages or application commands

Return

The Locale of the specified guild

Deprecated

Replaced by TextCommandLocaleProvider / UserLocaleProvider / GuildLocaleProvider

Parameters

guild

The target Guild to get the Locale from

See also