Class ServerVoiceChannelMemberLeaveEventImpl
- 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.ServerVoiceChannelMemberLeaveEventImpl
-
- All Implemented Interfaces:
ChannelEvent
,ServerVoiceChannelEvent
,ServerVoiceChannelMemberLeaveEvent
,VoiceChannelEvent
,Event
,ServerEvent
,UserEvent
public class ServerVoiceChannelMemberLeaveEventImpl extends ServerVoiceChannelMemberEventImpl implements ServerVoiceChannelMemberLeaveEvent
The implementation ofServerVoiceChannelMemberLeaveEvent
.
-
-
Constructor Summary
Constructors Constructor Description ServerVoiceChannelMemberLeaveEventImpl(Long userId, ServerVoiceChannel newChannel, ServerVoiceChannel oldChannel)
Creates a new server voice channel member leave event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ServerVoiceChannel>
getNewChannel()
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
-
ServerVoiceChannelMemberLeaveEventImpl
public ServerVoiceChannelMemberLeaveEventImpl(Long userId, ServerVoiceChannel newChannel, ServerVoiceChannel oldChannel)
Creates a new server voice channel member leave 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
-
getNewChannel
public Optional<ServerVoiceChannel> getNewChannel()
- Specified by:
getNewChannel
in interfaceServerVoiceChannelMemberLeaveEvent
-
isMove
public boolean isMove()
- Specified by:
isMove
in interfaceServerVoiceChannelMemberLeaveEvent
-
-