Package com.mewna.catnip.rest.handler
Class RestUser
java.lang.Object
com.mewna.catnip.rest.handler.RestUser
- Since:
- 9/3/18.
- Author:
- amy
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected CatnipImpl
catnip()
io.reactivex.rxjava3.core.Single<DMChannel>
io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
createDMRaw
(String recipientId) protected EntityBuilder
io.reactivex.rxjava3.core.Single<ApplicationInfo>
io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
io.reactivex.rxjava3.core.Single<User>
io.reactivex.rxjava3.core.Observable<PartialGuild>
getCurrentUserGuilds
(String before, String after, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonArray>
getCurrentUserGuildsRaw
(String before, String after, int limit) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
io.reactivex.rxjava3.core.Single<GatewayInfo>
io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
io.reactivex.rxjava3.core.Single<User>
io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
getUserRaw
(String userId) io.reactivex.rxjava3.core.Completable
leaveGuild
(String guildId) io.reactivex.rxjava3.core.Single<User>
modifyCurrentUser
(String username, byte[] avatar) io.reactivex.rxjava3.core.Single<User>
modifyCurrentUser
(String username, URI avatarData) io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject>
modifyCurrentUserRaw
(String username, URI avatarData)
-
Constructor Details
-
RestUser
-
-
Method Details
-
getCurrentUser
-
getCurrentUserRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getCurrentUserRaw() -
getUser
-
getUserRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getUserRaw(@Nonnull String userId) -
modifyCurrentUser
-
modifyCurrentUserRaw
-
modifyCurrentUser
-
getCurrentUserGuilds
-
getCurrentUserGuilds
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<PartialGuild> getCurrentUserGuilds(@Nullable String before, @Nullable String after, @Nonnegative int limit) -
getCurrentUserGuildsRaw
-
createDM
-
createDMRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> createDMRaw(@Nonnull String recipientId) -
leaveGuild
-
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
-
getGatewayBotRaw
@Nonnull @CheckReturnValue public io.reactivex.rxjava3.core.Observable<com.grack.nanojson.JsonObject> getGatewayBotRaw() -
entityBuilder
-
catnip
-