DiscordLua
discorddiscord
v1.2.4
Install

StageInstancePrivacyLevel

Enum
On this page

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

Values

discord.StageInstancePrivacyLevel.Public
1
Public. Use the symbolic name in bot code rather than the raw value.
discord.StageInstancePrivacyLevel.GuildOnly
2
Guild Only. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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