Class ServerVoiceChannelMemberJoinEventImpl
- java.lang.Object
-
- org.javacord.core.event.EventImpl
-
- org.javacord.core.event.server.ServerEventImpl
-
- org.javacord.core.event.channel.server.voice.ServerVoiceChannelEventImpl
-
- org.javacord.core.event.channel.server.voice.ServerVoiceChannelMemberEventImpl
-
- org.javacord.core.event.channel.server.voice.ServerVoiceChannelMemberJoinEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerVoiceChannelEvent
,ServerVoiceChannelMemberJoinEvent
,VoiceChannelEvent
,Event
,ServerEvent
,UserEvent
public class ServerVoiceChannelMemberJoinEventImpl extends ServerVoiceChannelMemberEventImpl implements ServerVoiceChannelMemberJoinEvent
The implementation ofServerVoiceChannelMemberJoinEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerVoiceChannelMemberJoinEventImpl(Long userId, ServerVoiceChannel newChannel, ServerVoiceChannel oldChannel)
Creates a new server voice channel member join event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ServerVoiceChannel>
getOldChannel()
boolean
isMove()
-
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.server.ServerEvent
getServer
-
Methods inherited from class org.javacord.core.event.server.ServerEventImpl
getServer
-
Methods inherited from interface org.javacord.api.event.channel.server.voice.ServerVoiceChannelEvent
getChannel
-
Methods inherited from class org.javacord.core.event.channel.server.voice.ServerVoiceChannelEventImpl
getChannel
-
Methods inherited from class org.javacord.core.event.channel.server.voice.ServerVoiceChannelMemberEventImpl
getUser
-
-
-
-
Constructor Detail
-
ServerVoiceChannelMemberJoinEventImpl
public ServerVoiceChannelMemberJoinEventImpl(Long userId, ServerVoiceChannel newChannel, ServerVoiceChannel oldChannel)
Creates a new server voice channel member join event.- Parameters:
userId
- The id of the user of the event.newChannel
- The new channel of the event.oldChannel
- The old channel of the event.
-
-
Method Detail
-
getOldChannel
public Optional<ServerVoiceChannel> getOldChannel()
- Specified by:
getOldChannel
in interfaceServerVoiceChannelMemberJoinEvent
-
isMove
public boolean isMove()
- Specified by:
isMove
in interfaceServerVoiceChannelMemberJoinEvent
-
-