public class TypingStartEvent extends ChannelEvent
This event is dispatched by Discord.
Constructor and Description |
---|
TypingStartEvent(GatewayDiscordClient gateway,
ShardInfo shardInfo,
long channelId,
Long guildId,
long userId,
Instant startTime,
Member member) |
Modifier and Type | Method and Description |
---|---|
Mono<MessageChannel> |
getChannel()
Requests to retrieve the
MessageChannel the user has started typing in. |
Snowflake |
getChannelId()
Gets the
Snowflake ID of the MessageChannel the user has started typing in. |
Optional<Snowflake> |
getGuildId()
|
Optional<Member> |
getMember()
Gets the
Member who started typing, if this happened in a guild. |
Instant |
getStartTime()
Gets the time at which the
User started typing in this event. |
Mono<User> |
getUser()
Requests to retrieve the
User who has started typing in this event. |
Snowflake |
getUserId()
|
String |
toString() |
getClient, getShardInfo
public Snowflake getChannelId()
Snowflake
ID of the MessageChannel
the user has started typing in.MessageChannel
the User
is typing in.public Mono<MessageChannel> getChannel()
MessageChannel
the user has started typing in.Mono
where, upon successful completion, emits the MessageChannel
the User
has
started typing in. If an error is received, it is emitted through the Mono
.public Mono<User> getUser()
User
who has started typing in this event.public Instant getStartTime()
User
started typing in this event.User
starting typing.public Optional<Member> getMember()
Member
who started typing, if this happened in a guild.Member
who started typing, if this happened in a guild.