Package org.javacord.core.event.user
Class UserStartTypingEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.user.UserStartTypingEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,TextChannelEvent
,Event
,OptionalUserEvent
,UserStartTypingEvent
public class UserStartTypingEventImpl extends EventImpl implements UserStartTypingEvent
The implementation ofUserStartTypingEvent
.
-
-
Constructor Summary
Constructors Constructor Description UserStartTypingEventImpl(TextChannel channel, long userId, Member member)
Creates a new user start typing event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TextChannel
getChannel()
java.util.Optional<User>
getUser()
long
getUserId()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javacord.api.event.user.OptionalUserEvent
getUserIdAsString, requestUser
-
Methods inherited from interface org.javacord.api.event.channel.TextChannelEvent
getPrivateChannel, getServerTextChannel, getServerThreadChannel, getServerVoiceChannel
-
-
-
-
Constructor Detail
-
UserStartTypingEventImpl
public UserStartTypingEventImpl(TextChannel channel, long userId, Member member)
Creates a new user start typing event.- Parameters:
channel
- The text channel of the event.userId
- The id of the user of the event.member
- The member of the event.
-
-
Method Detail
-
getChannel
public TextChannel getChannel()
- Specified by:
getChannel
in interfaceChannelEvent
- Specified by:
getChannel
in interfaceTextChannelEvent
-
getUserId
public long getUserId()
- Specified by:
getUserId
in interfaceOptionalUserEvent
-
getUser
public java.util.Optional<User> getUser()
- Specified by:
getUser
in interfaceOptionalUserEvent
-
-