Class TypingStartEvent
java.lang.Object
discord4j.core.event.domain.Event
discord4j.core.event.domain.channel.ChannelEvent
discord4j.core.event.domain.channel.TypingStartEvent
Dispatched when a user starts typing in a message channel.
This event is dispatched by Discord.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypingStartEvent
(GatewayDiscordClient gateway, ShardInfo shardInfo, long channelId, Long guildId, long userId, Instant startTime, Member member) -
Method Summary
Modifier and TypeMethodDescriptionRequests to retrieve theMessageChannel
the user has started typing in.Gets theSnowflake
ID of theMessageChannel
the user has started typing in.Gets theMember
who started typing, if this happened in a guild.Gets the time at which theUser
started typing in this event.getUser()
Requests to retrieve theUser
who has started typing in this event.toString()
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
Constructor Details
-
TypingStartEvent
-
-
Method Details
-
getChannelId
Gets theSnowflake
ID of theMessageChannel
the user has started typing in.- Returns:
- the ID of the
MessageChannel
theUser
is typing in.
-
getGuildId
-
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
.
-
getUserId
- Returns:
- The ID of the
User
who has started typing.
-
getUser
Requests to retrieve theUser
who has started typing in this event. -
getStartTime
Gets the time at which theUser
started typing in this event.- Returns:
- The time at which the
User
starting typing.
-
getMember
Gets theMember
who started typing, if this happened in a guild.- Returns:
- The
Member
who started typing, if this happened in a guild.
-
toString
-