public class WebhookService extends RestService
| Constructor and Description |
|---|
WebhookService(Router router) |
| Modifier and Type | Method and Description |
|---|---|
Mono<WebhookResponse> |
createWebhook(long channelId,
WebhookCreateRequest request,
String reason) |
Mono<Void> |
deleteWebhook(long webhookId,
String reason) |
Flux<WebhookResponse> |
getChannelWebhooks(long channelId) |
Flux<WebhookResponse> |
getGuildWebhooks(long guildId) |
Mono<WebhookResponse> |
getWebhook(long webhookId) |
Mono<WebhookResponse> |
modifyWebhook(long webhookId,
WebhookModifyRequest request,
String reason) |
getRouterpublic WebhookService(Router router)
public Mono<WebhookResponse> createWebhook(long channelId, WebhookCreateRequest request, @Nullable String reason)
public Flux<WebhookResponse> getChannelWebhooks(long channelId)
public Flux<WebhookResponse> getGuildWebhooks(long guildId)
public Mono<WebhookResponse> getWebhook(long webhookId)
public Mono<WebhookResponse> modifyWebhook(long webhookId, WebhookModifyRequest request, @Nullable String reason)