Package com.mewna.catnip.rest.handler
Class RestGuild
java.lang.Object
com.mewna.catnip.rest.handler.RestGuild
- Since:
- 9/3/18.
- Author:
- amy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.reactivex.rxjava3.core.Single<Member>
addGuildMember
(String guildId, String memberId, MemberAddOptions options) io.reactivex.rxjava3.core.Completable
addGuildMemberRole
(String guildId, String userId, String roleId) io.reactivex.rxjava3.core.Completable
addGuildMemberRole
(String guildId, String userId, String roleId, String reason) io.reactivex.rxjava3.core.Completable
addUserToThread
(String threadId, String userId) io.reactivex.rxjava3.core.Single<Integer>
beginGuildPrune
(String guildId, int days) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
beginGuildPruneRaw
(String guildId, int days) protected CatnipImpl
catnip()
io.reactivex.rxjava3.core.Single<Guild>
createGuild
(GuildData guild) io.reactivex.rxjava3.core.Completable
createGuildBan
(String guildId, String userId, int deleteMessageDays) io.reactivex.rxjava3.core.Completable
createGuildBan
(String guildId, String userId, String reason, int deleteMessageDays) io.reactivex.rxjava3.core.Single<GuildChannel>
createGuildChannel
(String guildId, ChannelData data) io.reactivex.rxjava3.core.Single<GuildChannel>
createGuildChannel
(String guildId, ChannelData data, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createGuildChannelRaw
(String guildId, ChannelData data, String reason) io.reactivex.rxjava3.core.Single<Guild>
createGuildFromTemplate
(String code, String name, String icon) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createGuildFromTemplateRaw
(String code, String name, String icon) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createGuildRaw
(GuildData guild) io.reactivex.rxjava3.core.Single<Role>
createGuildRole
(String guildId, RoleData roleData) io.reactivex.rxjava3.core.Single<Role>
createGuildRole
(String guildId, RoleData roleData, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createGuildRoleRaw
(String guildId, RoleData roleData, String reason) io.reactivex.rxjava3.core.Single<Template>
createGuildTemplate
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createGuildTemplateRaw
(String guildId) io.reactivex.rxjava3.core.Completable
deleteGuild
(String guildId) io.reactivex.rxjava3.core.Completable
deleteGuildRole
(String guildId, String roleId) io.reactivex.rxjava3.core.Completable
deleteGuildRole
(String guildId, String roleId, String reason) io.reactivex.rxjava3.core.Single<Template>
deleteGuildTemplate
(String guildId, String code) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
deleteGuildTemplateRaw
(String guildId, String code) protected EntityBuilder
io.reactivex.rxjava3.core.Single<Guild>
getGuildAuditLog
(String guildId) io.reactivex.rxjava3.core.Observable<AuditLogEntry>
getGuildAuditLog
(String guildId, String userId, String beforeEntryId, ActionType type, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildAuditLogRaw
(String guildId, String userId, String beforeEntryId, ActionType type, int limit) io.reactivex.rxjava3.core.Single<GuildBan>
getGuildBan
(String guildId, String userId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildBanRaw
(String guildId, String userId) io.reactivex.rxjava3.core.Observable<GuildBan>
getGuildBans
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildBansRaw
(String guildId) io.reactivex.rxjava3.core.Observable<GuildChannel>
getGuildChannels
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildChannelsRaw
(String guildId) io.reactivex.rxjava3.core.Single<GuildEmbed>
getGuildEmbed
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildEmbedRaw
(String guildId) io.reactivex.rxjava3.core.Observable<CreatedInvite>
getGuildInvites
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildInvitesRaw
(String guildId) io.reactivex.rxjava3.core.Single<Member>
getGuildMember
(String guildId, String userId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildMemberRaw
(String guildId, String userId) io.reactivex.rxjava3.core.Single<Integer>
getGuildPruneCount
(String guildId, int days) io.reactivex.rxjava3.core.Single<Integer>
getGuildPruneCount
(String guildId, int days, Collection<Role> includeRoles) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildPruneCountRaw
(String guildId, int days, Collection<Role> includeRoles) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildRaw
(String guildId) io.reactivex.rxjava3.core.Observable<Role>
getGuildRoles
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildRolesRaw
(String guildId) io.reactivex.rxjava3.core.Observable<Template>
getGuildTemplates
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildTemplatesRaw
(String guildId) io.reactivex.rxjava3.core.Single<CreatedInvite>
getGuildVanityURL
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getGuildVanityURLRaw
(String guildId) io.reactivex.rxjava3.core.Observable<VoiceRegion>
getGuildVoiceRegions
(String guildId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getGuildVoiceRegionsRaw
(String guildId) io.reactivex.rxjava3.core.Maybe<Template>
getTemplate
(String code) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getTemplateRaw
(String code) io.reactivex.rxjava3.core.Completable
joinThread
(String threadId) io.reactivex.rxjava3.core.Completable
leaveThread
(String threadId) io.reactivex.rxjava3.core.Observable<ThreadChannel>
listActiveThreads
(String threadId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
listActiveThreadsRaw
(String threadId) listGuildMembers
(String guildId) io.reactivex.rxjava3.core.Observable<Member>
listGuildMembers
(String guildId, int limit, String after) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
listGuildMembersRaw
(String guildId, int limit, String after) io.reactivex.rxjava3.core.Observable<ThreadChannel>
listJoinedPrivateArchivedThreads
(String threadId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
listJoinedPrivateArchivedThreadsRaw
(String threadId) io.reactivex.rxjava3.core.Observable<ThreadChannel>
listPrivateArchivedThreads
(String threadId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
listPrivateArchivedThreadsRaw
(String threadId) io.reactivex.rxjava3.core.Observable<ThreadChannel>
listPublicArchivedThreads
(String threadId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
listPublicArchivedThreadsRaw
(String threadId) io.reactivex.rxjava3.core.Observable<ThreadChannel.ThreadMember>
listThreadMembers
(String threadId) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
listThreadMembersRaw
(String threadId) io.reactivex.rxjava3.core.Single<String>
modifyCurrentUsersNick
(String guildId, String nick) io.reactivex.rxjava3.core.Single<String>
modifyCurrentUsersNick
(String guildId, String nick, String reason) io.reactivex.rxjava3.core.Single<Guild>
modifyGuild
(String guildId, Guild.GuildEditFields fields) io.reactivex.rxjava3.core.Single<Guild>
modifyGuild
(String guildId, Guild.GuildEditFields fields, String reason) io.reactivex.rxjava3.core.Completable
io.reactivex.rxjava3.core.Completable
modifyGuildChannelPositions
(PositionUpdater updater, String reason) io.reactivex.rxjava3.core.Single<GuildEmbed>
modifyGuildEmbed
(String guildId, String channelId, boolean enabled) io.reactivex.rxjava3.core.Single<GuildEmbed>
modifyGuildEmbed
(String guildId, String channelId, boolean enabled, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyGuildEmbedRaw
(String guildId, String channelId, boolean enabled, String reason) io.reactivex.rxjava3.core.Completable
modifyGuildMember
(String guildId, String memberId, MemberData data) io.reactivex.rxjava3.core.Completable
modifyGuildMember
(String guildId, String memberId, MemberData data, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyGuildRaw
(String guildId, Guild.GuildEditFields fields, String reason) io.reactivex.rxjava3.core.Single<Role>
modifyGuildRole
(String guildId, String roleId, RoleData roleData) io.reactivex.rxjava3.core.Single<Role>
modifyGuildRole
(String guildId, String roleId, RoleData roleData, String reason) io.reactivex.rxjava3.core.Completable
modifyGuildRolePositions
(PositionUpdater updater) io.reactivex.rxjava3.core.Completable
modifyGuildRolePositions
(PositionUpdater updater, String reason) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyGuildRoleRaw
(String guildId, String roleId, RoleData roleData, String reason) io.reactivex.rxjava3.core.Single<Template>
modifyGuildTemplate
(String guildId, String code, String name, String description) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyGuildTemplateRaw
(String guildId, String code, String name, String description) io.reactivex.rxjava3.core.Completable
removeGuildBan
(String guildId, String userId) io.reactivex.rxjava3.core.Completable
removeGuildBan
(String guildId, String userId, String reason) io.reactivex.rxjava3.core.Completable
removeGuildMember
(String guildId, String userId) io.reactivex.rxjava3.core.Completable
removeGuildMember
(String guildId, String userId, String reason) io.reactivex.rxjava3.core.Completable
removeGuildMemberRole
(String guildId, String userId, String roleId) io.reactivex.rxjava3.core.Completable
removeGuildMemberRole
(String guildId, String userId, String roleId, String reason) io.reactivex.rxjava3.core.Completable
removeUserFromThread
(String threadId, String userId) io.reactivex.rxjava3.core.Observable<Member>
searchGuildMembers
(String guildId, String query) io.reactivex.rxjava3.core.Observable<Member>
searchGuildMembers
(String guildId, String query, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
searchGuildMembersRaw
(String guildId, String query, int limit) io.reactivex.rxjava3.core.Single<ThreadChannel>
startPrivateThread
(String channelId, String name, int autoArchiveDuration) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
startPrivateThreadRaw
(String channelId, String name, int autoArchiveDuration) io.reactivex.rxjava3.core.Single<ThreadChannel>
startPublicThread
(String channelId, String messageId, String name, int autoArchiveDuration) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
startPublicThreadRaw
(String channelId, String messageId, String name, int autoArchiveDuration) io.reactivex.rxjava3.core.Single<Template>
syncGuildTemplate
(String guildId, String code) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
syncGuildTemplateRaw
(String guildId, String code)
-
Constructor Details
-
RestGuild
-
-
Method Details
-
addGuildMember
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Member> addGuildMember(@Nonnull String guildId, @Nonnull String memberId, @Nonnull MemberAddOptions options) -
modifyGuildMember
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildMember(@Nonnull String guildId, @Nonnull String memberId, @Nonnull MemberData data, @Nullable String reason) -
modifyGuildMember
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildMember(@Nonnull String guildId, @Nonnull String memberId, @Nonnull MemberData data) -
modifyGuildChannelPositions
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildChannelPositions(@Nonnull PositionUpdater updater, @Nullable String reason) -
modifyGuildChannelPositions
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildChannelPositions(@Nonnull PositionUpdater updater) -
modifyGuildRolePositions
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildRolePositions(@Nonnull PositionUpdater updater, @Nullable String reason) -
modifyGuildRolePositions
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable modifyGuildRolePositions(@Nonnull PositionUpdater updater) -
createGuildChannel
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildChannel> createGuildChannel(@Nonnull String guildId, @Nonnull ChannelData data, @Nullable String reason) -
createGuildChannel
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildChannel> createGuildChannel(@Nonnull String guildId, @Nonnull ChannelData data) -
createGuildChannelRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildChannelRaw(@Nonnull String guildId, @Nonnull ChannelData data, @Nullable String reason) -
getGuildEmbed
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildEmbed> getGuildEmbed(@Nonnull String guildId) -
getGuildEmbedRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildEmbedRaw(@Nonnull String guildId) -
modifyGuildEmbed
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildEmbed> modifyGuildEmbed(@Nonnull String guildId, @Nullable String channelId, boolean enabled, @Nullable String reason) -
modifyGuildEmbed
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildEmbed> modifyGuildEmbed(@Nonnull String guildId, @Nullable String channelId, boolean enabled) -
modifyGuildEmbedRaw
-
getGuildVanityURL
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<CreatedInvite> getGuildVanityURL(@Nonnull String guildId) -
getGuildVanityURLRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildVanityURLRaw(@Nonnull String guildId) -
createGuildRole
-
createGuildRole
-
createGuildRoleRaw
-
modifyGuildRole
-
modifyGuildRole
-
modifyGuildRoleRaw
-
deleteGuildRole
-
deleteGuildRole
-
getGuildRoles
-
getGuildRolesRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildRolesRaw(@Nonnull String guildId) -
getGuild
-
getGuildRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildRaw(@Nonnull String guildId) -
createGuild
-
createGuildRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildRaw(@Nonnull GuildData guild) -
deleteGuild
-
getGuildChannels
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<GuildChannel> getGuildChannels(@Nonnull String guildId) -
getGuildChannelsRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildChannelsRaw(@Nonnull String guildId) -
getGuildInvites
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<CreatedInvite> getGuildInvites(@Nonnull String guildId) -
getGuildInvitesRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildInvitesRaw(@Nonnull String guildId) -
modifyGuild
@Nonnull public io.reactivex.rxjava3.core.Single<Guild> modifyGuild(@Nonnull String guildId, @Nonnull Guild.GuildEditFields fields, @Nullable String reason) -
modifyGuild
public io.reactivex.rxjava3.core.Single<Guild> modifyGuild(@Nonnull String guildId, @Nonnull Guild.GuildEditFields fields) -
modifyGuildRaw
@Nonnull public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyGuildRaw(@Nonnull String guildId, @Nonnull Guild.GuildEditFields fields, @Nullable String reason) -
listGuildMembers
-
listGuildMembers
-
listGuildMembersRaw
-
searchGuildMembers
-
searchGuildMembers
-
searchGuildMembersRaw
-
getGuildBans
-
getGuildBansRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildBansRaw(@Nonnull String guildId) -
getGuildBan
-
getGuildBanRaw
-
createGuildBan
-
createGuildBan
-
removeGuildBan
-
removeGuildBan
-
modifyCurrentUsersNick
-
modifyCurrentUsersNick
-
removeGuildMember
-
removeGuildMember
-
getGuildMember
-
getGuildMemberRaw
-
removeGuildMemberRole
-
removeGuildMemberRole
-
addGuildMemberRole
-
addGuildMemberRole
-
getGuildPruneCount
-
getGuildPruneCount
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Integer> getGuildPruneCount(@Nonnull String guildId, @Nonnegative int days, @Nonnull Collection<Role> includeRoles) -
getGuildPruneCountRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildPruneCountRaw(@Nonnull String guildId, @Nonnegative int days, @Nonnull Collection<Role> includeRoles) -
beginGuildPrune
-
beginGuildPruneRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> beginGuildPruneRaw(@Nonnull String guildId, @Nonnegative int days) -
getGuildVoiceRegions
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<VoiceRegion> getGuildVoiceRegions(@Nonnull String guildId) -
getGuildVoiceRegionsRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildVoiceRegionsRaw(@Nonnull String guildId) -
getGuildAuditLog
-
getGuildAuditLog
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<AuditLogEntry> getGuildAuditLog(@Nonnull String guildId, @Nullable String userId, @Nullable String beforeEntryId, @Nullable ActionType type, @Nonnegative int limit) -
getGuildAuditLogRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildAuditLogRaw(@Nonnull String guildId, @Nullable String userId, @Nullable String beforeEntryId, @Nullable ActionType type, @Nonnegative int limit) -
getTemplate
-
getTemplateRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getTemplateRaw(@Nonnull String code) -
createGuildFromTemplate
-
createGuildFromTemplateRaw
-
getGuildTemplates
-
getGuildTemplatesRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildTemplatesRaw(@Nonnull String guildId) -
createGuildTemplate
-
createGuildTemplateRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildTemplateRaw(@Nonnull String guildId) -
syncGuildTemplate
-
syncGuildTemplateRaw
-
modifyGuildTemplate
-
modifyGuildTemplateRaw
-
deleteGuildTemplate
-
deleteGuildTemplateRaw
-
startPublicThread
public io.reactivex.rxjava3.core.Single<ThreadChannel> startPublicThread(@Nonnull String channelId, @Nonnull String messageId, @Nonnull String name, @Nonnegative int autoArchiveDuration) -
startPublicThreadRaw
-
startPrivateThread
public io.reactivex.rxjava3.core.Single<ThreadChannel> startPrivateThread(@Nonnull String channelId, @Nonnull String name, @Nonnegative int autoArchiveDuration) -
startPrivateThreadRaw
-
joinThread
-
addUserToThread
-
leaveThread
-
removeUserFromThread
-
listThreadMembers
public io.reactivex.rxjava3.core.Observable<ThreadChannel.ThreadMember> listThreadMembers(@Nonnull String threadId) -
listThreadMembersRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> listThreadMembersRaw(@Nonnull String threadId) -
listActiveThreads
public io.reactivex.rxjava3.core.Observable<ThreadChannel> listActiveThreads(@Nonnull String threadId) -
listActiveThreadsRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> listActiveThreadsRaw(@Nonnull String threadId) -
listPublicArchivedThreads
public io.reactivex.rxjava3.core.Observable<ThreadChannel> listPublicArchivedThreads(@Nonnull String threadId) -
listPublicArchivedThreadsRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> listPublicArchivedThreadsRaw(@Nonnull String threadId) -
listPrivateArchivedThreads
public io.reactivex.rxjava3.core.Observable<ThreadChannel> listPrivateArchivedThreads(@Nonnull String threadId) -
listPrivateArchivedThreadsRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> listPrivateArchivedThreadsRaw(@Nonnull String threadId) -
listJoinedPrivateArchivedThreads
public io.reactivex.rxjava3.core.Observable<ThreadChannel> listJoinedPrivateArchivedThreads(@Nonnull String threadId) -
listJoinedPrivateArchivedThreadsRaw
public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> listJoinedPrivateArchivedThreadsRaw(@Nonnull String threadId) -
entityBuilder
-
catnip
-