CreateCommand

@Serializable
data class CreateCommand(val name: String, val localizedNames: Map<String, String>? = null, val description: String, val localizedDescriptions: Map<String, String>? = null, val options: List<CommandOption>? = null, val defaultPermission: Permissions? = null, val allowedInDms: Boolean = true, val nsfw: Boolean = false, val type: CommandType = CommandType.ChatInput)(source)

Constructors

Link copied to clipboard
constructor(name: String, localizedNames: Map<String, String>? = null, description: String, localizedDescriptions: Map<String, String>? = null, options: List<CommandOption>? = null, defaultPermission: Permissions? = null, allowedInDms: Boolean = true, nsfw: Boolean = false, type: CommandType = CommandType.ChatInput)

Properties

Link copied to clipboard
@SerialName(value = "dm_permission")
val allowedInDms: Boolean = true
Link copied to clipboard
@SerialName(value = "default_member_permissions")
val defaultPermission: Permissions? = null
Link copied to clipboard
@SerialName(value = "description")
val description: String
Link copied to clipboard
@SerialName(value = "description_localizations")
val localizedDescriptions: Map<String, String>? = null
Link copied to clipboard
@SerialName(value = "name_localizations")
val localizedNames: Map<String, String>? = null
Link copied to clipboard
@SerialName(value = "name")
val name: String
Link copied to clipboard
@SerialName(value = "nsfw")
val nsfw: Boolean = false
Link copied to clipboard
@SerialName(value = "options")
val options: List<CommandOption>? = null
Link copied to clipboard
@SerialName(value = "type")
val type: CommandType