ApplicationCommandPermissionType
EnumOn this page
discord.ApplicationCommandPermissionType lists the named constants for this enumeration. Prefer these names over hardcoded literals.
Values
discord.ApplicationCommandPermissionType.Role1Role. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandPermissionType.User2User. Use the symbolic name in bot code rather than the raw value.
discord.ApplicationCommandPermissionType.Channel3Channel. Use the symbolic name in bot code rather than the raw value.
Usage
Read members as discord.ApplicationCommandPermissionType.Name. Do not hard-code numeric literals when a symbolic name exists.
Example
local discord = require("discord")
print(discord.ApplicationCommandPermissionType.Role)