public interface EntityRetriever
Modifier and Type | Method and Description |
---|---|
Mono<Channel> |
getChannelById(Snowflake channelId)
Requests to retrieve the channel represented by the supplied ID.
|
Mono<Guild> |
getGuildById(Snowflake guildId)
Requests to retrieve the guild represented by the supplied ID.
|
Flux<GuildChannel> |
getGuildChannels(Snowflake guildId)
Requests to retrieve the guild's channels.
|
Mono<GuildEmoji> |
getGuildEmojiById(Snowflake guildId,
Snowflake emojiId)
Requests to retrieve the guild emoji represented by the supplied IDs.
|
Flux<GuildEmoji> |
getGuildEmojis(Snowflake guildId)
Requests to retrieve the guild's emojis.
|
Flux<Member> |
getGuildMembers(Snowflake guildId)
Requests to retrieve the guild's members.
|
Flux<Role> |
getGuildRoles(Snowflake guildId)
Requests to retrieve the guild's roles.
|
Flux<Guild> |
getGuilds()
Requests to retrieve the guilds the current client is in.
|
Mono<Member> |
getMemberById(Snowflake guildId,
Snowflake userId)
Requests to retrieve the member represented by the supplied IDs.
|
Mono<Message> |
getMessageById(Snowflake channelId,
Snowflake messageId)
Requests to retrieve the message represented by the supplied IDs.
|
Mono<Role> |
getRoleById(Snowflake guildId,
Snowflake roleId)
Requests to retrieve the role represented by the supplied IDs.
|
Mono<User> |
getSelf()
Requests to retrieve the bot user.
|
Mono<User> |
getUserById(Snowflake userId)
Requests to retrieve the user represented by the supplied ID.
|
Mono<Channel> getChannelById(Snowflake channelId)
Mono<Guild> getGuildById(Snowflake guildId)
Mono<GuildEmoji> getGuildEmojiById(Snowflake guildId, Snowflake emojiId)
guildId
- The ID of the guild.emojiId
- The ID of the emoji.Mono
where, upon successful completion, emits the GuildEmoji
as represented by the
supplied IDs. If an error is received, it is emitted through the Mono
.Mono<Member> getMemberById(Snowflake guildId, Snowflake userId)
Mono<Message> getMessageById(Snowflake channelId, Snowflake messageId)
Mono<Role> getRoleById(Snowflake guildId, Snowflake roleId)
Mono<User> getUserById(Snowflake userId)
Flux<Member> getGuildMembers(Snowflake guildId)
Flux<GuildChannel> getGuildChannels(Snowflake guildId)
The order of items emitted by the returned Flux
is unspecified. Use
OrderUtil.orderGuildChannels(Flux)
to consistently order channels.
Flux<Role> getGuildRoles(Snowflake guildId)
The order of items emitted by the returned Flux
is unspecified. Use OrderUtil.orderRoles(Flux)
to consistently order roles.
Flux<GuildEmoji> getGuildEmojis(Snowflake guildId)