Table of Contents

Constructor InteractionCommandAllowedContextsAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

InteractionCommandAllowedContextsAttribute(params DiscordInteractionContextType[])

Specifies the allowed interaction contexts for a command.

public InteractionCommandAllowedContextsAttribute(params DiscordInteractionContextType[] allowedContexts)

Parameters

allowedContexts DiscordInteractionContextType[]