Class RestGuild

java.lang.Object
com.mewna.catnip.rest.handler.RestGuild

public class RestGuild extends Object
Since:
9/3/18.
Author:
amy
  • Constructor Details

  • 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

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyGuildEmbedRaw(@Nonnull String guildId, @Nullable String channelId, boolean enabled, @Nullable String reason)
    • 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

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Role> createGuildRole(@Nonnull String guildId, @Nonnull RoleData roleData, @Nullable String reason)
    • createGuildRole

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Role> createGuildRole(@Nonnull String guildId, @Nonnull RoleData roleData)
    • createGuildRoleRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildRoleRaw(@Nonnull String guildId, @Nonnull RoleData roleData, @Nullable String reason)
    • modifyGuildRole

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Role> modifyGuildRole(@Nonnull String guildId, @Nonnull String roleId, @Nonnull RoleData roleData, @Nullable String reason)
    • modifyGuildRole

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Role> modifyGuildRole(@Nonnull String guildId, @Nonnull String roleId, @Nonnull RoleData roleData)
    • modifyGuildRoleRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyGuildRoleRaw(@Nonnull String guildId, @Nonnull String roleId, @Nonnull RoleData roleData, @Nullable String reason)
    • deleteGuildRole

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable deleteGuildRole(@Nonnull String guildId, @Nonnull String roleId, @Nullable String reason)
    • deleteGuildRole

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Completable deleteGuildRole(@Nonnull String guildId, @Nonnull String roleId)
    • getGuildRoles

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<Role> getGuildRoles(@Nonnull String guildId)
    • getGuildRolesRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildRolesRaw(@Nonnull String guildId)
    • getGuild

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Guild> getGuild(@Nonnull String guildId)
    • getGuildRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildRaw(@Nonnull String guildId)
    • createGuild

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Guild> createGuild(@Nonnull GuildData guild)
    • createGuildRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildRaw(@Nonnull GuildData guild)
    • deleteGuild

      @Nonnull public io.reactivex.rxjava3.core.Completable deleteGuild(@Nonnull String guildId)
    • 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

      @Nonnull @CheckReturnValue public MemberPaginator listGuildMembers(@Nonnull String guildId)
    • listGuildMembers

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<Member> listGuildMembers(@Nonnull String guildId, @Nonnegative int limit, @Nullable String after)
    • listGuildMembersRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> listGuildMembersRaw(@Nonnull String guildId, @Nonnegative int limit, @Nullable String after)
    • searchGuildMembers

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<Member> searchGuildMembers(@Nonnull String guildId, @Nonnull String query)
    • searchGuildMembers

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<Member> searchGuildMembers(@Nonnull String guildId, @Nonnull String query, @Nonnegative int limit)
    • searchGuildMembersRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> searchGuildMembersRaw(@Nonnegative String guildId, @Nonnull String query, @Nonnegative int limit)
    • getGuildBans

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<GuildBan> getGuildBans(@Nonnull String guildId)
    • getGuildBansRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildBansRaw(@Nonnull String guildId)
    • getGuildBan

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GuildBan> getGuildBan(@Nonnull String guildId, @Nonnull String userId)
    • getGuildBanRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildBanRaw(@Nonnull String guildId, @Nonnull String userId)
    • createGuildBan

      @Nonnull public io.reactivex.rxjava3.core.Completable createGuildBan(@Nonnull String guildId, @Nonnull String userId, @Nonnegative int deleteMessageDays)
    • createGuildBan

      @Nonnull public io.reactivex.rxjava3.core.Completable createGuildBan(@Nonnull String guildId, @Nonnull String userId, @Nullable String reason, @Nonnegative int deleteMessageDays)
    • removeGuildBan

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildBan(@Nonnull String guildId, @Nonnull String userId, @Nullable String reason)
    • removeGuildBan

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildBan(@Nonnull String guildId, @Nonnull String userId)
    • modifyCurrentUsersNick

      @Nonnull public io.reactivex.rxjava3.core.Single<String> modifyCurrentUsersNick(@Nonnull String guildId, @Nullable String nick, @Nullable String reason)
    • modifyCurrentUsersNick

      @Nonnull public io.reactivex.rxjava3.core.Single<String> modifyCurrentUsersNick(@Nonnull String guildId, @Nullable String nick)
    • removeGuildMember

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildMember(@Nonnull String guildId, @Nonnull String userId, @Nullable String reason)
    • removeGuildMember

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildMember(@Nonnull String guildId, @Nonnull String userId)
    • getGuildMember

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Member> getGuildMember(@Nonnull String guildId, @Nonnull String userId)
    • getGuildMemberRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGuildMemberRaw(@Nonnull String guildId, @Nonnull String userId)
    • removeGuildMemberRole

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildMemberRole(@Nonnull String guildId, @Nonnull String userId, @Nonnull String roleId, @Nullable String reason)
    • removeGuildMemberRole

      @Nonnull public io.reactivex.rxjava3.core.Completable removeGuildMemberRole(@Nonnull String guildId, @Nonnull String userId, @Nonnull String roleId)
    • addGuildMemberRole

      @Nonnull public io.reactivex.rxjava3.core.Completable addGuildMemberRole(@Nonnull String guildId, @Nonnull String userId, @Nonnull String roleId, @Nullable String reason)
    • addGuildMemberRole

      @Nonnull public io.reactivex.rxjava3.core.Completable addGuildMemberRole(@Nonnull String guildId, @Nonnull String userId, @Nonnull String roleId)
    • getGuildPruneCount

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Integer> getGuildPruneCount(@Nonnull String guildId, @Nonnegative int days)
    • 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

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Integer> beginGuildPrune(@Nonnull String guildId, @Nonnegative int days)
    • 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

      public AuditLogPaginator getGuildAuditLog(@Nonnull String guildId)
    • 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

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Maybe<Template> getTemplate(@Nonnull String code)
    • getTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getTemplateRaw(@Nonnull String code)
    • createGuildFromTemplate

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Guild> createGuildFromTemplate(@Nonnull String code, @Nonnull String name, @Nullable String icon)
    • createGuildFromTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildFromTemplateRaw(@Nonnull String code, @Nonnull String name, @Nullable String icon)
    • getGuildTemplates

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<Template> getGuildTemplates(@Nonnull String guildId)
    • getGuildTemplatesRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray> getGuildTemplatesRaw(@Nonnull String guildId)
    • createGuildTemplate

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Template> createGuildTemplate(@Nonnull String guildId)
    • createGuildTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createGuildTemplateRaw(@Nonnull String guildId)
    • syncGuildTemplate

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Template> syncGuildTemplate(@Nonnull String guildId, @Nonnull String code)
    • syncGuildTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> syncGuildTemplateRaw(@Nonnull String guildId, @Nonnull String code)
    • modifyGuildTemplate

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Template> modifyGuildTemplate(@Nonnull String guildId, @Nonnull String code, @Nullable String name, @Nullable String description)
    • modifyGuildTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyGuildTemplateRaw(@Nonnull String guildId, @Nonnull String code, @Nullable String name, @Nullable String description)
    • deleteGuildTemplate

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<Template> deleteGuildTemplate(@Nonnull String guildId, @Nonnull String code)
    • deleteGuildTemplateRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> deleteGuildTemplateRaw(@Nonnull String guildId, @Nonnull String code)
    • startPublicThread

      public io.reactivex.rxjava3.core.Single<ThreadChannel> startPublicThread(@Nonnull String channelId, @Nonnull String messageId, @Nonnull String name, @Nonnegative int autoArchiveDuration)
    • startPublicThreadRaw

      public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> startPublicThreadRaw(@Nonnull String channelId, @Nonnull String messageId, @Nonnull String name, @Nonnegative int autoArchiveDuration)
    • startPrivateThread

      public io.reactivex.rxjava3.core.Single<ThreadChannel> startPrivateThread(@Nonnull String channelId, @Nonnull String name, @Nonnegative int autoArchiveDuration)
    • startPrivateThreadRaw

      public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> startPrivateThreadRaw(@Nonnull String channelId, @Nonnull String name, @Nonnegative int autoArchiveDuration)
    • joinThread

      public io.reactivex.rxjava3.core.Completable joinThread(@Nonnull String threadId)
    • addUserToThread

      public io.reactivex.rxjava3.core.Completable addUserToThread(@Nonnull String threadId, @Nonnull String userId)
    • leaveThread

      public io.reactivex.rxjava3.core.Completable leaveThread(@Nonnull String threadId)
    • removeUserFromThread

      public io.reactivex.rxjava3.core.Completable removeUserFromThread(@Nonnull String threadId, @Nonnull String userId)
    • 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

      protected EntityBuilder entityBuilder()
    • catnip

      protected CatnipImpl catnip()