DiscordLua
discorddiscord
v1.2.4
Install

Status

Enum
On this page

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

Values

discord.Status.Ready
0
Ready. Use the symbolic name in bot code rather than the raw value.
discord.Status.Connecting
1
Connecting. Use the symbolic name in bot code rather than the raw value.
discord.Status.Reconnecting
2
Reconnecting. Use the symbolic name in bot code rather than the raw value.
discord.Status.Idle
3
Idle. Use the symbolic name in bot code rather than the raw value.
discord.Status.Nearly
4
Nearly. Use the symbolic name in bot code rather than the raw value.
discord.Status.Disconnected
5
Disconnected. Use the symbolic name in bot code rather than the raw value.
discord.Status.WaitingForGuilds
6
Waiting For Guilds. Use the symbolic name in bot code rather than the raw value.
discord.Status.Identifying
7
Identifying. Use the symbolic name in bot code rather than the raw value.
discord.Status.Resuming
8
Resuming. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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