DiscordLua
discorddiscord
v1.2.4
Install

ChannelFlags

Enum
On this page

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

Values

discord.ChannelFlags.Pinned
1 << 1
Pinned. Use the symbolic name in bot code rather than the raw value.
discord.ChannelFlags.RequireTag
1 << 4
Require Tag. Use the symbolic name in bot code rather than the raw value.
discord.ChannelFlags.HideMediaDownloadOptions
1 << 15
Hide Media Download Options. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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