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
stringThe name of the slash command group.
description
stringThe description of the slash command group.
isNsfw
boolWhether 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
stringThe name of the slash command group.
description
stringThe description of the slash command group.
defaultMemberPermissions
longThe default member permissions of the slash command group.
isNsfw
boolWhether 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
stringThe name of the slash command group.
description
stringThe description of the slash command group.
dmPermission
boolThe dm permission of the slash command group.
isNsfw
boolWhether 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
stringThe name of the slash command group.
description
stringThe description of the slash command group.
defaultMemberPermissions
longThe default member permissions of the slash command group.
dmPermission
boolThe dm permission of the slash command group.
isNsfw
boolWhether 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.