DiscordLua
discorddiscord
v1.2.4
Install

Partials

Enum
On this page

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

Values

discord.Partials.User
0
User. Use the symbolic name in bot code rather than the raw value.
discord.Partials.Channel
1
Channel. Use the symbolic name in bot code rather than the raw value.
discord.Partials.GuildMember
2
Guild Member. Use the symbolic name in bot code rather than the raw value.
discord.Partials.Message
3
Message. Use the symbolic name in bot code rather than the raw value.
discord.Partials.Reaction
4
Reaction. Use the symbolic name in bot code rather than the raw value.
discord.Partials.GuildScheduledEvent
5
Guild Scheduled Event. Use the symbolic name in bot code rather than the raw value.
discord.Partials.ThreadMember
6
Thread Member. Use the symbolic name in bot code rather than the raw value.
discord.Partials.SoundboardSound
7
Soundboard Sound. Use the symbolic name in bot code rather than the raw value.
discord.Partials.Poll
8
Poll. Use the symbolic name in bot code rather than the raw value.
discord.Partials.PollAnswer
9
Poll Answer. Use the symbolic name in bot code rather than the raw value.
discord.Partials.USER
0
USER. Use the symbolic name in bot code rather than the raw value.
discord.Partials.CHANNEL
1
CHANNEL. Use the symbolic name in bot code rather than the raw value.
discord.Partials.GUILD_MEMBER
2
GUILD MEMBER. Use the symbolic name in bot code rather than the raw value.
discord.Partials.MESSAGE
3
MESSAGE. Use the symbolic name in bot code rather than the raw value.
discord.Partials.REACTION
4
REACTION. Use the symbolic name in bot code rather than the raw value.
discord.Partials.GUILD_SCHEDULED_EVENT
5
GUILD SCHEDULED EVENT. Use the symbolic name in bot code rather than the raw value.
discord.Partials.THREAD_MEMBER
6
THREAD MEMBER. Use the symbolic name in bot code rather than the raw value.
discord.Partials.SOUNDBOARD_SOUND
7
SOUNDBOARD SOUND. Use the symbolic name in bot code rather than the raw value.
discord.Partials.POLL
8
POLL. Use the symbolic name in bot code rather than the raw value.
discord.Partials.POLL_ANSWER
9
POLL ANSWER. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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