Class TypingStartEvent
- java.lang.Object
-
- discord4j.core.event.domain.Event
-
- discord4j.core.event.domain.channel.ChannelEvent
-
- discord4j.core.event.domain.channel.TypingStartEvent
-
public class TypingStartEvent extends ChannelEvent
Dispatched when a user starts typing in a message channel.This event is dispatched by Discord.
- See Also:
- Typing Start
-
-
Constructor Summary
Constructors Constructor Description TypingStartEvent(GatewayDiscordClient gateway, ShardInfo shardInfo, long channelId, Long guildId, long userId, Instant startTime, Member member)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Mono<MessageChannel>
getChannel()
Requests to retrieve theMessageChannel
the user has started typing in.Snowflake
getChannelId()
Gets theSnowflake
ID of theMessageChannel
the user has started typing in.Optional<Snowflake>
getGuildId()
Optional<Member>
getMember()
Gets theMember
who started typing, if this happened in a guild.Instant
getStartTime()
Gets the time at which theUser
started typing in this event.Mono<User>
getUser()
Requests to retrieve theUser
who has started typing in this event.Snowflake
getUserId()
String
toString()
-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Method Detail
-
getChannelId
public Snowflake getChannelId()
Gets theSnowflake
ID of theMessageChannel
the user has started typing in.- Returns:
- the ID of the
MessageChannel
theUser
is typing in.
-
getChannel
public Mono<MessageChannel> getChannel()
Requests to retrieve theMessageChannel
the user has started typing in.- Returns:
- A
Mono
where, upon successful completion, emits theMessageChannel
theUser
has started typing in. If an error is received, it is emitted through theMono
.
-
getUser
public Mono<User> getUser()
Requests to retrieve theUser
who has started typing in this event.
-
getStartTime
public Instant getStartTime()
Gets the time at which theUser
started typing in this event.- Returns:
- The time at which the
User
starting typing.
-
getMember
public Optional<Member> getMember()
Gets theMember
who started typing, if this happened in a guild.- Returns:
- The
Member
who started typing, if this happened in a guild.
-
-