public class UserTypingEvent extends GenericUserEvent
User started typing. (Similar to the typing indicator in the Discord client)
Can be used to retrieve the User who started typing and when and in which MessageChannel they started typing.
| Constructor | Description |
|---|---|
UserTypingEvent(JDA api,
long responseNumber,
User user,
MessageChannel channel,
java.time.OffsetDateTime timestamp) |
| Modifier and Type | Method | Description |
|---|---|---|
MessageChannel |
getChannel() |
The channel where the typing was started
|
Group |
getGroup() |
Group in which this users started typing,
or null if this was not in a Group. |
Guild |
getGuild() |
Guild in which this users started typing,
or null if this was not in a Guild. |
Member |
getMember() |
Member instance for the User, or null if this was not in a Guild. |
PrivateChannel |
getPrivateChannel() |
PrivateChannel in which this users started typing,
or null if this was not in a PrivateChannel. |
TextChannel |
getTextChannel() |
TextChannel in which this users started typing,
or null if this was not in a TextChannel. |
java.time.OffsetDateTime |
getTimestamp() |
The time when the user started typing
|
ChannelType |
getType() |
The
ChannelType |
boolean |
isFromType(ChannelType type) |
Whether the user started typing in a channel of the specified type.
|
getJDA, getResponseNumbergetUserpublic UserTypingEvent(JDA api, long responseNumber, User user, MessageChannel channel, java.time.OffsetDateTime timestamp)
public java.time.OffsetDateTime getTimestamp()
public MessageChannel getChannel()
public boolean isFromType(ChannelType type)
type - ChannelTypepublic ChannelType getType()
ChannelTypeChannelTypepublic PrivateChannel getPrivateChannel()
PrivateChannel in which this users started typing,
or null if this was not in a PrivateChannel.PrivateChannelpublic TextChannel getTextChannel()
TextChannel in which this users started typing,
or null if this was not in a TextChannel.TextChannelpublic Group getGroup()
Group in which this users started typing,
or null if this was not in a Group.Grouppublic Guild getGuild()
Guild in which this users started typing,
or null if this was not in a Guild.Guild