Package org.javacord.core.event.user
Class OptionalUserEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.user.OptionalUserEventImpl
-
- All Implemented Interfaces:
Event
,OptionalUserEvent
- Direct Known Subclasses:
UserChangeActivityEventImpl
,UserChangeStatusEventImpl
public abstract class OptionalUserEventImpl extends EventImpl implements OptionalUserEvent
The implementation ofOptionalUserEvent
.
-
-
Constructor Summary
Constructors Constructor Description OptionalUserEventImpl(DiscordApi api, long userId)
Creates a new optional user event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getUser, getUserIdAsString, requestUser
-
-
-
-
Constructor Detail
-
OptionalUserEventImpl
public OptionalUserEventImpl(DiscordApi api, long userId)
Creates a new optional user event.- Parameters:
api
- The discord api instance.userId
- The id of the user of the event.
-
-
Method Detail
-
getUserId
public long getUserId()
- Specified by:
getUserId
in interfaceOptionalUserEvent
-
-