Package com.mewna.catnip.rest.handler
Class RestChannel
java.lang.Object
com.mewna.catnip.rest.handler.RestChannel
- Since:
- 9/3/18.
- Author:
- amy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Completable
addPinnedMessage
(Message message) io.reactivex.rxjava3.core.Completable
addPinnedMessage
(Message message, String reason) io.reactivex.rxjava3.core.Completable
addPinnedMessage
(String channelId, String messageId) io.reactivex.rxjava3.core.Completable
addPinnedMessage
(String channelId, String messageId, String reason) io.reactivex.rxjava3.core.Completable
addReaction
(String channelId, String messageId, Emoji emoji) io.reactivex.rxjava3.core.Completable
addReaction
(String channelId, String messageId, String emoji) protected CatnipImpl
catnip()
io.reactivex.rxjava3.core.Single<CreatedInvite>
createInvite
(String channelId, InviteCreateOptions options) io.reactivex.rxjava3.core.Single<CreatedInvite>
createInvite
(String channelId, InviteCreateOptions options, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createInviteRaw
(String channelId, InviteCreateOptions options, String reason) io.reactivex.rxjava3.core.Single<Message>
createMessage
(String channelId, Embed embed) io.reactivex.rxjava3.core.Single<Message>
createMessage
(String channelId, Message message) io.reactivex.rxjava3.core.Single<Message>
createMessage
(String channelId, MessageOptions options) io.reactivex.rxjava3.core.Single<Message>
createMessage
(String channelId, String content) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createMessageRaw
(String channelId, Message message) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createMessageRaw
(String channelId, MessageOptions options) io.reactivex.rxjava3.core.Single<Webhook>
createWebhook
(String channelId, String name, String avatar) io.reactivex.rxjava3.core.Single<Webhook>
createWebhook
(String channelId, String name, String avatar, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createWebhookRaw
(String channelId, String name, String avatar, String reason) io.reactivex.rxjava3.core.Single<Message>
crosspostMessage
(String channelId, String messageId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
crosspostMessageRaw
(String channelId, String messageId) io.reactivex.rxjava3.core.Completable
deleteAllReactions
(String channelId, String messageId) io.reactivex.rxjava3.core.Single<Channel>
deleteChannel
(String channelId) io.reactivex.rxjava3.core.Single<Channel>
deleteChannel
(String channelId, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
deleteChannelRaw
(String channelId, String reason) io.reactivex.rxjava3.core.Completable
deleteEmojiReaction
(String channelId, String messageId, Emoji emoji) io.reactivex.rxjava3.core.Completable
deleteEmojiReaction
(String channelId, String messageId, String emoji) io.reactivex.rxjava3.core.Completable
deleteMessage
(String channelId, String messageId) io.reactivex.rxjava3.core.Completable
deleteMessage
(String channelId, String messageId, String reason) io.reactivex.rxjava3.core.Completable
deleteMessages
(String channelId, List<String> messageIds) io.reactivex.rxjava3.core.Completable
deleteMessages
(String channelId, List<String> messageIds, String reason) io.reactivex.rxjava3.core.Completable
deleteOwnReaction
(String channelId, String messageId, Emoji emoji) io.reactivex.rxjava3.core.Completable
deleteOwnReaction
(String channelId, String messageId, String emoji) io.reactivex.rxjava3.core.Completable
deletePermissionOverride
(String channelId, PermissionOverride overwrite) io.reactivex.rxjava3.core.Completable
deletePermissionOverride
(String channelId, PermissionOverride overwrite, String reason) io.reactivex.rxjava3.core.Completable
deletePermissionOverride
(String channelId, String overwriteId, String reason) io.reactivex.rxjava3.core.Completable
deletePinnedMessage
(Message message) io.reactivex.rxjava3.core.Completable
deletePinnedMessage
(Message message, String reason) io.reactivex.rxjava3.core.Completable
deletePinnedMessage
(String channelId, String messageId) io.reactivex.rxjava3.core.Completable
deletePinnedMessage
(String channelId, String messageId, String reason) io.reactivex.rxjava3.core.Completable
deleteUserReaction
(String channelId, String messageId, String userId, Emoji emoji) io.reactivex.rxjava3.core.Completable
deleteUserReaction
(String channelId, String messageId, String userId, String emoji) io.reactivex.rxjava3.core.Single<Message>
editMessage
(String channelId, String messageId, Embed embed) io.reactivex.rxjava3.core.Single<Message>
editMessage
(String channelId, String messageId, Message message) io.reactivex.rxjava3.core.Single<Message>
editMessage
(String channelId, String messageId, MessageOptions message) io.reactivex.rxjava3.core.Single<Message>
editMessage
(String channelId, String messageId, String content) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
editMessageRaw
(String channelId, String messageId, MessageOptions options) io.reactivex.rxjava3.core.Completable
editPermissionOverride
(String channelId, PermissionOverride overwrite, Collection<Permission> allowed, Collection<Permission> denied) io.reactivex.rxjava3.core.Completable
editPermissionOverride
(String channelId, PermissionOverride overwrite, Collection<Permission> allowed, Collection<Permission> denied, String reason) io.reactivex.rxjava3.core.Completable
editPermissionOverride
(String channelId, String overwriteId, Collection<Permission> allowed, Collection<Permission> denied, boolean isMember) io.reactivex.rxjava3.core.Completable
editPermissionOverride
(String channelId, String overwriteId, Collection<Permission> allowed, Collection<Permission> denied, boolean isMember, String reason) protected EntityBuilder
io.reactivex.rxjava3.core.Single<Channel>
getChannelById
(String channelId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getChannelByIdRaw
(String channelId) io.reactivex.rxjava3.core.Observable<CreatedInvite>
getChannelInvites
(String channelId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getChannelInvitesRaw
(String channelId) getChannelMessages
(String channelId) io.reactivex.rxjava3.core.Observable<Message>
getChannelMessages
(String channelId, String before, String after, String around, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getChannelMessagesRaw
(String channelId, String before, String after, String around, int limit) io.reactivex.rxjava3.core.Single<Message>
getMessage
(String channelId, String messageId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getMessageRaw
(String channelId, String messageId) io.reactivex.rxjava3.core.Observable<Message>
getPinnedMessages
(String channelId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getPinnedMessagesRaw
(String channelId) getReactions
(String channelId, String messageId, Emoji emoji) io.reactivex.rxjava3.core.Observable<User>
getReactions
(String channelId, String messageId, Emoji emoji, String before, String after, int limit) getReactions
(String channelId, String messageId, String emoji) io.reactivex.rxjava3.core.Observable<User>
getReactions
(String channelId, String messageId, String emoji, String before, String after, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getReactionsRaw
(String channelId, String messageId, String emoji, String before, String after, int limit) io.reactivex.rxjava3.core.Single<GuildChannel>
modifyChannel
(String channelId, GuildChannel.ChannelEditFields fields) io.reactivex.rxjava3.core.Single<GuildChannel>
modifyChannel
(String channelId, GuildChannel.ChannelEditFields fields, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyChannelRaw
(String channelId, GuildChannel.ChannelEditFields fields, String reason) io.reactivex.rxjava3.core.Completable
triggerTypingIndicator
(String channelId)
-
Constructor Details
-
RestChannel
-
-
Method Details
-
createMessage
-
createMessage
-
createMessage
-
createMessage
@Nonnull public io.reactivex.rxjava3.core.Single<Message> createMessage(@Nonnull String channelId, @Nonnull MessageOptions options) -
createMessageRaw
-
createMessageRaw
@Nonnull public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createMessageRaw(@Nonnull String channelId, @Nonnull MessageOptions options) -
getMessage
-
getMessageRaw
-
editMessage
-
editMessage
-
editMessage
@Nonnull public io.reactivex.rxjava3.core.Single<Message> editMessage(@Nonnull String channelId, @Nonnull String messageId, @Nonnull MessageOptions message) -
editMessage
-
editMessageRaw
@Nonnull public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> editMessageRaw(@Nonnull String channelId, @Nonnull String messageId, @Nonnull MessageOptions options) -
deleteMessage
-
deleteMessage
-
deleteMessages
-
deleteMessages
-
addReaction
-
addReaction
-
deleteOwnReaction
-
deleteOwnReaction
-
deleteUserReaction
-
deleteUserReaction
-
deleteAllReactions
-
deleteEmojiReaction
-
deleteEmojiReaction
-
getReactions
@Nonnull @CheckReturnValue public ReactionPaginator getReactions(@Nonnull String channelId, @Nonnull String messageId, @Nonnull String emoji) -
getReactions
@Nonnull @CheckReturnValue public ReactionPaginator getReactions(@Nonnull String channelId, @Nonnull String messageId, @Nonnull Emoji emoji) -
getReactionsRaw
-
getReactions
-
getReactions
-
getChannelMessages
-
getChannelMessagesRaw
-
getChannelMessages
-
triggerTypingIndicator
@Nonnull public io.reactivex.rxjava3.core.Completable triggerTypingIndicator(@Nonnull String channelId) -
getChannelById
-
getChannelByIdRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getChannelByIdRaw(@Nonnull String channelId) -
deleteChannel
-
deleteChannel
-
deleteChannelRaw
-
createInvite
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<CreatedInvite> createInvite(@Nonnull String channelId, @Nullable InviteCreateOptions options, @Nullable String reason) -
createInvite
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<CreatedInvite> createInvite(@Nonnull String channelId, @Nullable InviteCreateOptions options) -
createInviteRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createInviteRaw(@Nonnull String channelId, @Nullable InviteCreateOptions options, @Nullable String reason) -
getChannelInvites
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<CreatedInvite> getChannelInvites(@Nonnull String channelId) -
getChannelInvitesRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getChannelInvitesRaw(@Nonnull String channelId) -
modifyChannel
@Nonnull public io.reactivex.rxjava3.core.Single<GuildChannel> modifyChannel(@Nonnull String channelId, @Nonnull GuildChannel.ChannelEditFields fields, @Nullable String reason) -
modifyChannel
@Nonnull public io.reactivex.rxjava3.core.Single<GuildChannel> modifyChannel(@Nonnull String channelId, @Nonnull GuildChannel.ChannelEditFields fields) -
modifyChannelRaw
@Nonnull public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyChannelRaw(@Nonnull String channelId, @Nonnull GuildChannel.ChannelEditFields fields, @Nullable String reason) -
deletePermissionOverride
-
deletePermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable deletePermissionOverride(@Nonnull String channelId, @Nonnull PermissionOverride overwrite, @Nullable String reason) -
deletePermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable deletePermissionOverride(@Nonnull String channelId, @Nonnull PermissionOverride overwrite) -
editPermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable editPermissionOverride(@Nonnull String channelId, @Nonnull String overwriteId, @Nonnull Collection<Permission> allowed, @Nonnull Collection<Permission> denied, boolean isMember, @Nullable String reason) -
editPermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable editPermissionOverride(@Nonnull String channelId, @Nonnull String overwriteId, @Nonnull Collection<Permission> allowed, @Nonnull Collection<Permission> denied, boolean isMember) -
editPermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable editPermissionOverride(@Nonnull String channelId, @Nonnull PermissionOverride overwrite, @Nonnull Collection<Permission> allowed, @Nonnull Collection<Permission> denied, @Nullable String reason) -
editPermissionOverride
@Nonnull public io.reactivex.rxjava3.core.Completable editPermissionOverride(@Nonnull String channelId, @Nonnull PermissionOverride overwrite, @Nonnull Collection<Permission> allowed, @Nonnull Collection<Permission> denied) -
getPinnedMessages
-
getPinnedMessagesRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getPinnedMessagesRaw(@Nonnull String channelId) -
deletePinnedMessage
-
deletePinnedMessage
-
deletePinnedMessage
-
deletePinnedMessage
-
addPinnedMessage
-
addPinnedMessage
-
addPinnedMessage
-
addPinnedMessage
-
createWebhook
-
createWebhook
-
createWebhookRaw
-
crosspostMessage
-
crosspostMessageRaw
-
entityBuilder
-
catnip
-