Table of Contents

Constructor SlashCommandGroupAttribute

Namespace
DisCatSharp.ApplicationCommands.Attributes
Assembly
DisCatSharp.ApplicationCommands.dll

SlashCommandGroupAttribute(string, string, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this class as a slash command group.

public SlashCommandGroupAttribute(string name, string description, bool isNsfw = false, InteractionContextType[]? allowedContexts = null, ApplicationCommandIntegrationTypes[]? integrationTypes = null)

Parameters

name string

The name of the slash command group.

description string

The description of the slash command group.

isNsfw bool

Whether the slash command group is marked as NSFW.

allowedContexts InteractionContextType[]

The allowed contexts of the slash command group.

integrationTypes ApplicationCommandIntegrationTypes[]

The allowed integration types of the slash command group.

SlashCommandGroupAttribute(string, string, long, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command group.

public SlashCommandGroupAttribute(string name, string description, long defaultMemberPermissions, bool isNsfw = false, InteractionContextType[]? allowedContexts = null, ApplicationCommandIntegrationTypes[]? integrationTypes = null)

Parameters

name string

The name of the slash command group.

description string

The description of the slash command group.

defaultMemberPermissions long

The default member permissions of the slash command group.

isNsfw bool

Whether the slash command group is marked as NSFW.

allowedContexts InteractionContextType[]

The allowed contexts of the slash command group.

integrationTypes ApplicationCommandIntegrationTypes[]

The allowed integration types of the slash command group.

SlashCommandGroupAttribute(string, string, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command group.

public SlashCommandGroupAttribute(string name, string description, bool dmPermission, bool isNsfw = false, InteractionContextType[]? allowedContexts = null, ApplicationCommandIntegrationTypes[]? integrationTypes = null)

Parameters

name string

The name of the slash command group.

description string

The description of the slash command group.

dmPermission bool

The dm permission of the slash command group.

isNsfw bool

Whether the slash command group is marked as NSFW.

allowedContexts InteractionContextType[]

The allowed contexts of the slash command group.

integrationTypes ApplicationCommandIntegrationTypes[]

The allowed integration types of the slash command group.

SlashCommandGroupAttribute(string, string, long, bool, bool, InteractionContextType[]?, ApplicationCommandIntegrationTypes[]?)

Marks this method as a slash command group.

public SlashCommandGroupAttribute(string name, string description, long defaultMemberPermissions, bool dmPermission, bool isNsfw = false, InteractionContextType[]? allowedContexts = null, ApplicationCommandIntegrationTypes[]? integrationTypes = null)

Parameters

name string

The name of the slash command group.

description string

The description of the slash command group.

defaultMemberPermissions long

The default member permissions of the slash command group.

dmPermission bool

The dm permission of the slash command group.

isNsfw bool

Whether the slash command group is marked as NSFW.

allowedContexts InteractionContextType[]

The allowed contexts of the slash command group.

integrationTypes ApplicationCommandIntegrationTypes[]

The allowed integration types of the slash command group.