ApplicationCommandCreateRequest

data class ApplicationCommandCreateRequest(val name: String, val nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val type: ApplicationCommandType, val description: Optional<String> = Optional.Missing(), val descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), val options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), val defaultMemberPermissions: Optional<Permissions?> = Optional.Missing(), val dmPermission: OptionalBoolean? = OptionalBoolean.Missing, val defaultPermission: OptionalBoolean = OptionalBoolean.Missing, val nsfw: OptionalBoolean = OptionalBoolean.Missing)(source)

Constructors

Link copied to clipboard
constructor(name: String, nameLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), type: ApplicationCommandType, description: Optional<String> = Optional.Missing(), descriptionLocalizations: Optional<Map<Locale, String>?> = Optional.Missing(), options: Optional<List<ApplicationCommandOption>> = Optional.Missing(), defaultMemberPermissions: Optional<Permissions?> = Optional.Missing(), dmPermission: OptionalBoolean? = OptionalBoolean.Missing, defaultPermission: OptionalBoolean = OptionalBoolean.Missing, nsfw: OptionalBoolean = OptionalBoolean.Missing)

Properties

Link copied to clipboard
@SerialName(value = "default_member_permissions")
val defaultMemberPermissions: Optional<Permissions?>
Link copied to clipboard
@SerialName(value = "default_permission")
val defaultPermission: OptionalBoolean
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "description_localizations")
val descriptionLocalizations: Optional<Map<Locale, String>?>
Link copied to clipboard
@SerialName(value = "dm_permission")
val dmPermission: OptionalBoolean?
Link copied to clipboard
Link copied to clipboard
@SerialName(value = "name_localizations")
val nameLocalizations: Optional<Map<Locale, String>?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard