Table of Contents

Constructor SlashCommandAttribute

Namespace
DSharpPlus.SlashCommands
Assembly
DSharpPlus.SlashCommands.dll

SlashCommandAttribute(string, string, bool, bool)

Marks this method as a slash command.

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

Parameters

name string

Sets the name of this slash command.

description string

Sets the description of this slash command.

defaultPermission bool

Sets whether the command should be enabled by default.

nsfw bool

Sets whether the command is age restricted.