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