DiscordLua
discorddiscord
v1.2.4
Install

GuildScheduledEventStatus

Enum
On this page

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

Values

discord.GuildScheduledEventStatus.Scheduled
1
Scheduled. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventStatus.Active
2
Active. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventStatus.Completed
3
Completed. Use the symbolic name in bot code rather than the raw value.
discord.GuildScheduledEventStatus.Canceled
4
Canceled. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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