Package com.mewna.catnip.entity.user
Interface VoiceState
- All Superinterfaces:
Entity
,GuildEntity
,HasChannel
,HasGuild
,Timestamped
- All Known Implementing Classes:
VoiceStateImpl
A user's voice state.
- Since:
- 9/21/18.
- Author:
- amy
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.mewna.catnip.entity.partials.Timestamped
Timestamped.TimestampStyle
-
Method Summary
Modifier and TypeMethodDescriptiondefault @NonNull io.reactivex.rxjava3.core.Maybe<VoiceChannel>
channel()
boolean
deaf()
default io.reactivex.rxjava3.core.Maybe<Member>
member()
boolean
mute()
default OffsetDateTime
boolean
selfDeaf()
boolean
selfMute()
boolean
boolean
suppress()
default io.reactivex.rxjava3.core.Maybe<User>
user()
default String
userId()
long
Methods inherited from interface com.mewna.catnip.entity.partials.GuildEntity
guild
Methods inherited from interface com.mewna.catnip.entity.partials.HasChannel
channelId, channelIdAsLong
Methods inherited from interface com.mewna.catnip.entity.partials.HasGuild
guildId, guildIdAsLong
Methods inherited from interface com.mewna.catnip.entity.partials.Timestamped
asDiscordTimestamp, parseTimestamp
-
Method Details
-
channel
@Nonnull @CheckReturnValue @NonNull default @NonNull io.reactivex.rxjava3.core.Maybe<VoiceChannel> channel()- Returns:
- The guild this voice state is for, if applicable.
-
userId
- Returns:
- The user's id.
-
userIdAsLong
@CheckReturnValue long userIdAsLong()- Returns:
- The user's id.
-
user
- Returns:
- The user who owns the voice state.
-
member
- Returns:
- The guild member who owns the voice state.
-
sessionId
- Returns:
- The session id for this voice state. Only known for the current user.
-
deaf
@CheckReturnValue boolean deaf()- Returns:
- Whether the user has been deafened.
-
mute
@CheckReturnValue boolean mute()- Returns:
- Whether the user has been muted.
-
selfDeaf
@CheckReturnValue boolean selfDeaf()- Returns:
- Whether the user has deafened themself.
-
selfMute
@CheckReturnValue boolean selfMute()- Returns:
- Whether the user has muted themself.
-
suppress
@CheckReturnValue boolean suppress()- Returns:
- Whether the user has been suppressed.
-
selfStream
@CheckReturnValue boolean selfStream()- Returns:
- Whether the user is currently streaming (go live).
-
requestToSpeakTimestamp
-
requestToSpeakTimestampRaw
-