Package com.mewna.catnip.rest.handler
Class RestWebhook
java.lang.Object
com.mewna.catnip.rest.handler.RestWebhook
- Since:
- 9/15/18
- Author:
- natanbc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CatnipImplcatnip()io.reactivex.rxjava3.core.CompletabledeleteWebhook(String webhookId) io.reactivex.rxjava3.core.CompletabledeleteWebhook(String webhookId, String reason) io.reactivex.rxjava3.core.CompletabledeleteWebhookMessage(String webhookId, String webhookToken, String messageId) io.reactivex.rxjava3.core.Single<Message>editWebhookMessage(String webhookId, String webhookToken, String messageId, MessageOptions options) io.reactivex.rxjava3.core.Single<Message>editWebhookMessage(String webhookId, String webhookToken, String messageId, String username, String avatarUrl, MessageOptions options) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>editWebhookMessageRaw(String webhookId, String webhookToken, String messageId, String username, String avatarUrl, MessageOptions options) protected EntityBuilderio.reactivex.rxjava3.core.Single<Message>executeWebhook(String webhookId, String webhookToken, MessageOptions options) io.reactivex.rxjava3.core.Single<Message>executeWebhook(String webhookId, String webhookToken, String username, String avatarUrl, MessageOptions options) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>executeWebhookRaw(String webhookId, String webhookToken, String username, String avatarUrl, MessageOptions options) io.reactivex.rxjava3.core.Observable<Webhook>getChannelWebhooks(String channelId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>getChannelWebhooksRaw(String channelId) io.reactivex.rxjava3.core.Observable<Webhook>getGuildWebhooks(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>getGuildWebhooksRaw(String guildId) io.reactivex.rxjava3.core.Single<Webhook>getWebhook(String webhookId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>getWebhookRaw(String webhookId) io.reactivex.rxjava3.core.Single<Webhook>getWebhookToken(String webhookId, String token) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>getWebhookTokenRaw(String webhookId, String token) io.reactivex.rxjava3.core.Single<Webhook>modifyWebhook(String webhookId, Webhook.WebhookEditFields fields) io.reactivex.rxjava3.core.Single<Webhook>modifyWebhook(String webhookId, Webhook.WebhookEditFields fields, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>modifyWebhookRaw(String webhookId, Webhook.WebhookEditFields fields, String reason)
-
Constructor Details
-
RestWebhook
-
-
Method Details
-
getWebhook
-
getWebhookRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getWebhookRaw(@Nonnull String webhookId) -
getWebhookToken
-
getWebhookTokenRaw
-
getGuildWebhooks
-
getGuildWebhooksRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildWebhooksRaw(@Nonnull String guildId) -
getChannelWebhooks
-
getChannelWebhooksRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getChannelWebhooksRaw(@Nonnull String channelId) -
modifyWebhook
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Webhook> modifyWebhook(@Nonnull String webhookId, @Nonnull Webhook.WebhookEditFields fields, @Nullable String reason) -
modifyWebhook
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Webhook> modifyWebhook(@Nonnull String webhookId, @Nonnull Webhook.WebhookEditFields fields) -
modifyWebhookRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyWebhookRaw(@Nonnull String webhookId, @Nonnull Webhook.WebhookEditFields fields, @Nullable String reason) -
deleteWebhook
-
deleteWebhook
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable deleteWebhook(@Nonnull String webhookId) -
executeWebhook
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Message> executeWebhook(@Nonnull String webhookId, @Nonnull String webhookToken, @Nonnull MessageOptions options) -
executeWebhook
-
executeWebhookRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> executeWebhookRaw(@Nonnull String webhookId, @Nonnull String webhookToken, @Nullable String username, @Nullable String avatarUrl, @Nonnull MessageOptions options) -
editWebhookMessage
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Message> editWebhookMessage(@Nonnull String webhookId, @Nonnull String webhookToken, @Nonnull String messageId, @Nonnull MessageOptions options) -
editWebhookMessage
-
editWebhookMessageRaw
-
deleteWebhookMessage
-
entityBuilder
-
catnip
-