ChannelType
EnumOn this page
discord.ChannelType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.ChannelType.GuildText0Guild Text. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.DM1DM. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildVoice2Guild Voice. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GroupDM3Group DM. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildCategory4Guild Category. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildAnnouncement5Guild Announcement. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.AnnouncementThread10Announcement Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.PublicThread11Public Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.PrivateThread12Private Thread. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildStageVoice13Guild Stage Voice. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildDirectory14Guild Directory. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildForum15Guild Forum. Use the symbolic name in bot code rather than the raw value.
discord.ChannelType.GuildMedia16Guild 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
local discord = require("discord")
print(discord.ChannelType.GuildText)