DiscordLua
discorddiscord
v1.2.4
Install

GuildExplicitContentFilter

Enum
On this page

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

Values

discord.GuildExplicitContentFilter.Disabled
0
Disabled. Use the symbolic name in bot code rather than the raw value.
discord.GuildExplicitContentFilter.MembersWithoutRoles
1
Members Without Roles. Use the symbolic name in bot code rather than the raw value.
discord.GuildExplicitContentFilter.AllMembers
2
All Members. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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