WebhookService

Constructors

Link copied to clipboard
constructor(requestHandler: RequestHandler)

Functions

Link copied to clipboard
inline suspend fun createWebhook(channelId: Snowflake, name: String, builder: WebhookCreateBuilder.() -> Unit): DiscordWebhook
Link copied to clipboard
suspend fun deleteWebhook(webhookId: Snowflake, reason: String? = null)
Link copied to clipboard
suspend fun deleteWebhookMessage(webhookId: Snowflake, token: String, messageId: Snowflake, threadId: Snowflake? = null)
Link copied to clipboard
suspend fun deleteWebhookWithToken(webhookId: Snowflake, token: String, reason: String? = null)
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
suspend fun getWebhook(webhookId: Snowflake): DiscordWebhook
Link copied to clipboard
suspend fun getWebhookMessage(webhookId: Snowflake, token: String, messageId: Snowflake, threadId: Snowflake? = null): DiscordMessage
Link copied to clipboard
suspend fun getWebhookWithToken(webhookId: Snowflake, token: String): DiscordWebhook
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