Class InteractionCommandAllowedContextsAttribute
- Namespace
- DSharpPlus.SlashCommands
- Assembly
- DSharpPlus.SlashCommands.dll
Specifies the allowed interaction contexts for a command.
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false)]
public sealed class InteractionCommandAllowedContextsAttribute : Attribute
- Inheritance
-
InteractionCommandAllowedContextsAttribute
Constructors
- InteractionCommandAllowedContextsAttribute(params DiscordInteractionContextType[])
Specifies the allowed interaction contexts for a command.
Properties
- AllowedContexts
The contexts the command is allowed to be used in.