DiscordLua
discorddiscord
v1.2.4
Install

ChannelType

Enum
On this page

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

Values

discord.ChannelType.GuildText
0
Guild Text. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.DM
1
DM. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildVoice
2
Guild Voice. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GroupDM
3
Group DM. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildCategory
4
Guild Category. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildAnnouncement
5
Guild Announcement. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.AnnouncementThread
10
Announcement Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.PublicThread
11
Public Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.PrivateThread
12
Private Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildStageVoice
13
Guild Stage Voice. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildDirectory
14
Guild Directory. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildForum
15
Guild Forum. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildMedia
16
Guild Media. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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