Package-level declarations

Types

Link copied to clipboard
@Serializable
@SerialName(value = "2")
data class ApplicationCommand(val id: String, val applicationId: String, val token: String, val version: Int, val appPermissions: String? = null, val data: ApplicationCommand.Data, val guildId: String? = null, val channelId: String? = null, val member: GuildMember? = null, val user: User? = null, val message: Message? = null, val userLocale: String? = null, val guildLocale: String? = null) : Interaction
Link copied to clipboard
@Serializable
@SerialName(value = "11")
data class AttachmentResponse(val name: String, val value: String?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "4")
data class AutocompletePrompt(val id: String, val applicationId: String, val data: CommandInteractionData? = null, val guildId: String? = null, val channelId: String? = null, val member: GuildMember? = null, val user: User? = null, val token: String, val version: Int, val appPermissions: String? = null, val message: Message? = null, val userLocale: String? = null, val guildLocale: String? = null) : Interaction
Link copied to clipboard
@Serializable
@SerialName(value = "5")
data class BooleanResponse(val name: String, val value: Boolean?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "7")
data class ChannelResponse(val name: String, val value: String?) : CommandInteractionOptionResponse
Link copied to clipboard
class CommandClient(val applicationId: String, client: RestClient) : RestClient
Link copied to clipboard
@Serializable
data class CommandInteractionData(val id: String, val name: String, val type: CommandType, val resolved: CommandInteractionDataResolved? = null, val options: List<CommandInteractionOptionResponse> = emptyList(), val customId: String? = null, val componentType: Int? = null, val values: List<Unit>? = null, val targetId: String? = null)
Link copied to clipboard
@Serializable
data class CommandInteractionDataResolved(val users: Map<String, User> = emptyMap(), val members: Map<String, PartialMember> = emptyMap(), val roles: Map<String, Role> = emptyMap(), val channels: Map<String, PartialChannel> = emptyMap(), val messages: Map<String, Message> = emptyMap(), val attachments: Map<String, Attachment> = emptyMap())
Link copied to clipboard
@Serializable
sealed class CommandInteractionOptionResponse
Link copied to clipboard
@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)
Link copied to clipboard
@Serializable
@SerialName(value = "4")
data class IntegerResponse(val name: String, val value: Int?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
sealed class Interaction
Link copied to clipboard
class InteractionClient(val applicationId: String, val interactionToken: String, client: RestClient) : RestClient
Link copied to clipboard
@Serializable
@SerialName(value = "1")
data class InteractionPing(val id: String, val applicationId: String, val token: String, val version: Int = 1, val appPermissions: String? = null) : Interaction
Link copied to clipboard
Link copied to clipboard
@Serializable
@SerialName(value = "9")
data class MentionableResponse(val name: String, val value: String?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "3")
data class MessageComponent(val id: String, val applicationId: String, val data: MessageComponent.Data, val guildId: String? = null, val channelId: String? = null, val member: GuildMember? = null, val user: User? = null, val token: String, val version: Int, val appPermissions: String? = null, val message: Message? = null, val userLocale: String? = null, val guildLocale: String? = null) : Interaction
Link copied to clipboard
@Serializable
@SerialName(value = "5")
data class ModalSubmit(val id: String, val applicationId: String, val data: ModalSubmit.Data, val guildId: String? = null, val channelId: String? = null, val member: GuildMember? = null, val user: User? = null, val token: String, val version: Int, val appPermissions: String? = null, val userLocale: String? = null, val guildLocale: String? = null) : Interaction
Link copied to clipboard
@Serializable
@SerialName(value = "10")
data class NumberResponse(val name: String, val value: Float?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
data class PatchCommand(val name: String? = null, val description: String? = null, val options: List<CommandOption>? = null, val defaultPermission: Boolean? = null)
Link copied to clipboard
@Serializable
@SerialName(value = "8")
data class RoleResponse(val name: String, val value: String?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "3")
data class StringResponse(val name: String, val value: String?) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "2")
data class SubCommandGroupResponse(val name: String, val options: List<CommandInteractionOptionResponse>) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "1")
data class SubCommandResponse(val name: String, val options: List<CommandInteractionOptionResponse>) : CommandInteractionOptionResponse
Link copied to clipboard
@Serializable
@SerialName(value = "6")
data class UserResponse(val name: String, val value: String?) : CommandInteractionOptionResponse