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 theMessageChannelthe user has started typing in.SnowflakegetChannelId()Gets theSnowflakeID of theMessageChannelthe user has started typing in.Optional<Snowflake>getGuildId()Optional<Member>getMember()Gets theMemberwho started typing, if this happened in a guild.InstantgetStartTime()Gets the time at which theUserstarted typing in this event.Mono<User>getUser()Requests to retrieve theUserwho has started typing in this event.SnowflakegetUserId()StringtoString()-
Methods inherited from class discord4j.core.event.domain.Event
getClient, getShardInfo
-
-
-
-
Method Detail
-
getChannelId
public Snowflake getChannelId()
Gets theSnowflakeID of theMessageChannelthe user has started typing in.- Returns:
- the ID of the
MessageChanneltheUseris typing in.
-
getChannel
public Mono<MessageChannel> getChannel()
Requests to retrieve theMessageChannelthe user has started typing in.- Returns:
- A
Monowhere, upon successful completion, emits theMessageChanneltheUserhas started typing in. If an error is received, it is emitted through theMono.
-
getUser
public Mono<User> getUser()
Requests to retrieve theUserwho has started typing in this event.
-
getStartTime
public Instant getStartTime()
Gets the time at which theUserstarted typing in this event.- Returns:
- The time at which the
Userstarting typing.
-
getMember
public Optional<Member> getMember()
Gets theMemberwho started typing, if this happened in a guild.- Returns:
- The
Memberwho started typing, if this happened in a guild.
-
-