WebhookService
Functions
Link copied to clipboard
inline suspend fun createWebhook(channelId: Snowflake, name: String, builder: WebhookCreateBuilder.() -> Unit): DiscordWebhook
Link copied to clipboard
Link copied to clipboard
suspend fun deleteWebhookMessage(webhookId: Snowflake, token: String, messageId: Snowflake, threadId: Snowflake? = null)
Link copied to clipboard
Link copied to clipboard
inline suspend fun editWebhookMessage(webhookId: Snowflake, token: String, messageId: Snowflake, threadId: Snowflake? = null, builder: WebhookMessageModifyBuilder.() -> Unit): DiscordMessage
Link copied to clipboard
suspend fun executeGithubWebhook(webhookId: Snowflake, token: String, body: JsonObject, wait: Boolean? = null, threadId: Snowflake? = null)
Link copied to clipboard
suspend fun executeSlackWebhook(webhookId: Snowflake, token: String, body: JsonObject, wait: Boolean? = null, threadId: Snowflake? = null)
Link copied to clipboard
inline suspend fun executeWebhook(webhookId: Snowflake, token: String, wait: Boolean? = null, threadId: Snowflake? = null, builder: WebhookMessageCreateBuilder.() -> Unit): DiscordMessage?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getWebhookMessage(webhookId: Snowflake, token: String, messageId: Snowflake, threadId: Snowflake? = null): DiscordMessage
Link copied to clipboard
Link copied to clipboard
inline suspend fun modifyWebhook(webhookId: Snowflake, builder: WebhookModifyBuilder.() -> Unit): DiscordWebhook
Link copied to clipboard
inline suspend fun modifyWebhookWithToken(webhookId: Snowflake, token: String, builder: WebhookModifyBuilder.() -> Unit): DiscordWebhook