DiscordLua
discorddiscord
v1.2.4
Install

TeamMemberRole

Enum
On this page

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

Values

discord.TeamMemberRole.Admin
admin
Admin. Use the symbolic name in bot code rather than the raw value.
discord.TeamMemberRole.Developer
developer
Developer. Use the symbolic name in bot code rather than the raw value.
discord.TeamMemberRole.ReadOnly
read_only
Read Only. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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