DiscordLua
discorddiscord
v1.2.4
Install

SubscriptionStatus

Enum
On this page

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

Values

discord.SubscriptionStatus.Active
0
Active. Use the symbolic name in bot code rather than the raw value.
discord.SubscriptionStatus.Ending
1
Ending. Use the symbolic name in bot code rather than the raw value.
discord.SubscriptionStatus.Inactive
2
Inactive. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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