DiscordLua
discorddiscord
v1.2.4
Install

OAuth2Scopes

Enum
On this page

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

Values

discord.OAuth2Scopes.Bot
bot
Bot. Use the symbolic name in bot code rather than the raw value.
discord.OAuth2Scopes.ApplicationsCommands
applications.commands
Applications Commands. Use the symbolic name in bot code rather than the raw value.
discord.OAuth2Scopes.Identify
identify
Identify. Use the symbolic name in bot code rather than the raw value.
discord.OAuth2Scopes.Guilds
guilds
Guilds. Use the symbolic name in bot code rather than the raw value.
discord.OAuth2Scopes.Email
email
Email. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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