sub

fun sub(    name: String,     description: String = "",     requiredPermissions: Permissions = this.requiredPermissions,     action: GuildSlashCommand.() -> Unit)

Create a slash subcommand.

Parameters

name

The name of this command.

description

The description of this command.

requiredPermissions

The Permissions required to run this command.

action

The command action.