DiscordLua
discorddiscord
v1.2.4
Install

Locale

Enum
On this page

discord.Locale lists the named constants for this enumeration. Prefer these names over hardcoded literals.

Values

discord.Locale.EnglishUS
en-US
English US. Use the symbolic name in bot code rather than the raw value.
discord.Locale.EnglishGB
en-GB
English GB. Use the symbolic name in bot code rather than the raw value.
discord.Locale.Turkish
tr
Turkish. Use the symbolic name in bot code rather than the raw value.
discord.Locale.German
de
German. Use the symbolic name in bot code rather than the raw value.
discord.Locale.French
fr
French. Use the symbolic name in bot code rather than the raw value.
discord.Locale.SpanishES
es-ES
Spanish ES. Use the symbolic name in bot code rather than the raw value.
discord.Locale.Japanese
ja
Japanese. Use the symbolic name in bot code rather than the raw value.
discord.Locale.Korean
ko
Korean. Use the symbolic name in bot code rather than the raw value.
discord.Locale.Russian
ru
Russian. Use the symbolic name in bot code rather than the raw value.

Usage

Read members as discord.Locale.Name. Do not hard-code numeric literals when a symbolic name exists.

Example

lua
local discord = require("discord")
print(discord.Locale.EnglishUS)
Search Ctrl K Navigate Open Esc