DiscordApplicationCommand

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

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "application_id")
val applicationId: Snowflake
Link copied to clipboard
@SerialName(value = "default_member_permissions")
val defaultMemberPermissions: Permissions?
Link copied to clipboard
@SerialName(value = "default_permission")
val defaultPermission: OptionalBoolean?
Link copied to clipboard

Don't trust the docs: This is nullable on non chat input commands.

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
@SerialName(value = "guild_id")
val guildId: OptionalSnowflake
Link copied to clipboard
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
Link copied to clipboard