DiscordLua
discorddiscord
v1.2.4
Install

AudioPlayerStatus

Enum
On this page

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

Values

discord.AudioPlayerStatus.Idle
idle
Idle. Use the symbolic name in bot code rather than the raw value.
discord.AudioPlayerStatus.Buffering
buffering
Buffering. Use the symbolic name in bot code rather than the raw value.
discord.AudioPlayerStatus.Playing
playing
Playing. Use the symbolic name in bot code rather than the raw value.
discord.AudioPlayerStatus.Paused
paused
Paused. Use the symbolic name in bot code rather than the raw value.
discord.AudioPlayerStatus.AutoPaused
autopaused
Auto Paused. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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