DiscordLua
discorddiscord
v1.2.4
Install

SpeakingFlags

Enum
On this page

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

Values

discord.SpeakingFlags.None
0
None. Use the symbolic name in bot code rather than the raw value.
discord.SpeakingFlags.Microphone
1 << 0
Microphone. Use the symbolic name in bot code rather than the raw value.
discord.SpeakingFlags.Soundshare
1 << 1
Soundshare. Use the symbolic name in bot code rather than the raw value.
discord.SpeakingFlags.Priority
1 << 2
Priority. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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