Package-level declarations

Types

Link copied to clipboard
@Serializable
data class CreateWebhookMessage(val content: String?, val overrideUsername: String? = null, val overrideAvatarUrl: String? = null, val useTTS: Boolean = false, val fileContent: List<Byte>? = null, val embeds: List<Embed> = emptyList(), val fileUploadEmbed: String? = null, val allowedMentions: AllowedMentions = AllowedMentions.ALL, val components: List<MessageComponent> = emptyList(), val flags: InteractionCommandCallbackDataFlags = InteractionCommandCallbackDataFlags.NONE)
Link copied to clipboard
@Serializable
data class PatchWebhook(val name: String? = null, val base64AvatarData: String? = null, val channelId: String? = null)
Link copied to clipboard
@Serializable
data class PatchWebhookMessage(val content: String?, val embeds: List<Embed> = emptyList(), val fileContent: List<Byte>? = null, val fileUploadEmbed: String? = null, val allowedMentions: AllowedMentions = AllowedMentions.ALL, val attachments: List<Attachment> = emptyList(), val components: List<MessageComponent> = emptyList())
Link copied to clipboard
class WebhookClient(val webhookId: String, client: RestClient) : RestClient

A REST client for a specific webhook

Link copied to clipboard
@Serializable
data class WebhookSubmission(val content: String?, val overrideUsername: String? = null, val overrideAvatarUrl: String? = null, val useTTS: Boolean = false, val fileContent: List<Byte>? = null, val embeds: List<Embed> = emptyList(), val fileUploadEmbed: String? = null, val allowedMentions: AllowedMentions = AllowedMentions.ALL)