DiscordLua
discorddiscord
v1.2.4
Install

ActivityFlags

Enum
On this page

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

Values

discord.ActivityFlags.Instance
1 << 0
Instance. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.Join
1 << 1
Join. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.Spectate
1 << 2
Spectate. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.JoinRequest
1 << 3
Join Request. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.Sync
1 << 4
Sync. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.Play
1 << 5
Play. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.PartyPrivacyFriends
1 << 6
Party Privacy Friends. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.PartyPrivacyVoiceChannel
1 << 7
Party Privacy Voice Channel. Use the symbolic name in bot code rather than the raw value.
discord.ActivityFlags.Embedded
1 << 8
Embedded. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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