DiscordLua
discorddiscord
v1.2.4
Install

WebhookType

Enum
On this page

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

Values

discord.WebhookType.Incoming
1
Incoming. Use the symbolic name in bot code rather than the raw value.
discord.WebhookType.ChannelFollower
2
Channel Follower. Use the symbolic name in bot code rather than the raw value.
discord.WebhookType.Application
3
Application. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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