DiscordLua
discorddiscord
v1.2.4
Install

AttachmentFlags

Enum
On this page

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

Values

discord.AttachmentFlags.IsClip
1 << 0
Is Clip. Use the symbolic name in bot code rather than the raw value.
discord.AttachmentFlags.IsThumbnail
1 << 1
Is Thumbnail. Use the symbolic name in bot code rather than the raw value.
discord.AttachmentFlags.IsRemix
1 << 2
Is Remix. Use the symbolic name in bot code rather than the raw value.
discord.AttachmentFlags.IsSpoiler
1 << 3
Is Spoiler. Use the symbolic name in bot code rather than the raw value.
discord.AttachmentFlags.IsAnimated
1 << 5
Is Animated. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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