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
namestringThe name of the slash command group.
descriptionstringThe description of the slash command group.
isNsfwboolWhether the slash command group is marked as NSFW.
allowedContextsInteractionContextType[]The allowed contexts of the slash command group.
integrationTypesApplicationCommandIntegrationTypes[]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
namestringThe name of the slash command group.
descriptionstringThe description of the slash command group.
defaultMemberPermissionslongThe default member permissions of the slash command group.
isNsfwboolWhether the slash command group is marked as NSFW.
allowedContextsInteractionContextType[]The allowed contexts of the slash command group.
integrationTypesApplicationCommandIntegrationTypes[]The allowed integration types of the slash command group.