Class RestUser

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

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

  • Method Details

    • getCurrentUser

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<User> getCurrentUser()
    • getCurrentUserRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getCurrentUserRaw()
    • getUser

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<User> getUser(@Nonnull String userId)
    • getUserRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getUserRaw(@Nonnull String userId)
    • modifyCurrentUser

      @Nonnull public io.reactivex.rxjava3.core.Single<User> modifyCurrentUser(@Nullable String username, @Nullable URI avatarData)
    • modifyCurrentUserRaw

      @Nonnull public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> modifyCurrentUserRaw(@Nullable String username, @Nullable URI avatarData)
    • modifyCurrentUser

      @Nonnull public io.reactivex.rxjava3.core.Single<User> modifyCurrentUser(@Nullable String username, @Nullable byte[] avatar)
    • getCurrentUserGuilds

      @Nonnull @CheckReturnValue public GuildPaginator getCurrentUserGuilds()
    • getCurrentUserGuilds

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<PartialGuild> getCurrentUserGuilds(@Nullable String before, @Nullable String after, @Nonnegative int limit)
    • getCurrentUserGuildsRaw

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

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<DMChannel> createDM(@Nonnull String recipientId)
    • createDMRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createDMRaw(@Nonnull String recipientId)
    • leaveGuild

      @Nonnull public io.reactivex.rxjava3.core.Completable leaveGuild(@Nonnull String guildId)
    • getCurrentApplicationInformation

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<ApplicationInfo> getCurrentApplicationInformation()
    • getCurrentApplicationInformationRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getCurrentApplicationInformationRaw()
    • getGatewayBot

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Single<GatewayInfo> getGatewayBot()
    • getGatewayBotRaw

      @Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGatewayBotRaw()
    • entityBuilder

      protected EntityBuilder entityBuilder()
    • catnip

      protected CatnipImpl catnip()