Table of Contents

Constructor SlashCommandGroupAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

SlashCommandGroupAttribute(string, string, bool, bool)

Marks this class as a slash command group.

public SlashCommandGroupAttribute(string name, string description, bool defaultPermission = true, bool nsfw = false)

Parameters

name string

Sets the name of this command group.

description string

Sets the description of this command group.

defaultPermission bool

Sets whether this command group is enabled on default.

nsfw bool

Sets whether the command group is age restricted.