DiscordLua
discorddiscord
v1.2.4
Install

ActivityType

Enum
On this page

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

Values

discord.ActivityType.Playing
0
Playing. Use the symbolic name in bot code rather than the raw value.
discord.ActivityType.Streaming
1
Streaming. Use the symbolic name in bot code rather than the raw value.
discord.ActivityType.Listening
2
Listening. Use the symbolic name in bot code rather than the raw value.
discord.ActivityType.Watching
3
Watching. Use the symbolic name in bot code rather than the raw value.
discord.ActivityType.Custom
4
Custom. Use the symbolic name in bot code rather than the raw value.
discord.ActivityType.Competing
5
Competing. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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