EntitlementType
EnumOn this page
discord.EntitlementType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.EntitlementType.Purchase1Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.PremiumSubscription2Premium Subscription. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.DeveloperGift3Developer Gift. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.TestModePurchase4Test Mode Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.FreePurchase5Free Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.UserGift6User Gift. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.PremiumPurchase7Premium Purchase. Use the symbolic name in bot code rather than the raw value.
discord.EntitlementType.ApplicationSubscription8Application 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
local discord = require("discord")
print(discord.EntitlementType.Purchase)