DiscordLua
discorddiscord
v1.2.4
Install

OverwriteType

Enum
On this page

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

Values

discord.OverwriteType.Role
0
Role. Use the symbolic name in bot code rather than the raw value.
discord.OverwriteType.Member
1
Member. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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