SlashCommandBuilder constructor
- String name,
- String? description,
- List<
CommandOptionBuilder> options, - {bool canBeUsedInDm = true,
- int? requiredPermissions,
- Snowflake? guild,
- SlashCommandType type = SlashCommandType.chat,
- @Deprecated('Use canBeUsedInDm and requiredPermissions instead') bool defaultPermissions = true,
- @Deprecated('Use canBeUsedInDm and requiredPermissions instead') List<
CommandPermissionBuilderAbstract> ? permissions, - Map<
Locale, String> ? localizationsName, - Map<
Locale, String> ? localizationsDescription, - bool? isNsfw}
A slash command, can only be instantiated through a method on IInteractions
Implementation
SlashCommandBuilder