DiscordLua
discorddiscord
v1.2.4
Install

EntitlementType

Enum
On this page

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

Values

discord.EntitlementType.Purchase
1
Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.PremiumSubscription
2
Premium Subscription. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.DeveloperGift
3
Developer Gift. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.TestModePurchase
4
Test Mode Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.FreePurchase
5
Free Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.UserGift
6
User Gift. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.PremiumPurchase
7
Premium Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.ApplicationSubscription
8
Application Subscription. Use the symbolic name in bot code rather than the raw value.

Usage

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

Example

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