public class ChannelKickEvent extends ActorChannelMessageEventBase<Actor> implements ChannelUserListChangeEvent
User
has kicked another User!ChannelUserListChangeEvent.Change
Constructor and Description |
---|
ChannelKickEvent(@NonNull Client client,
@NonNull ServerMessage sourceMessage,
@NonNull Channel channel,
@NonNull Actor actor,
@NonNull User target,
@NonNull String message)
Creates the event.
|
Modifier and Type | Method and Description |
---|---|
@NonNull Optional<Channel> |
getAffectedChannel()
Gets the channel affected or empty if affecting all channels the user
is present in.
|
@NonNull ChannelUserListChangeEvent.Change |
getChange()
Gets the type of change occurring.
|
@NonNull User |
getTarget()
Gets the kicked user.
|
@NonNull User |
getUser()
Gets the current user affected.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getMessage
getChannel
getActor
getSource
getClient, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getSource, getTag, getTag, getTags
getClient
public ChannelKickEvent(@NonNull Client client, @NonNull ServerMessage sourceMessage, @NonNull Channel channel, @NonNull Actor actor, @NonNull User target, @NonNull String message)
client
- client for which this is occurringsourceMessage
- source messagechannel
- channel being leftactor
- actor kicking the targeted usertarget
- targeted usermessage
- message the user leftpublic @NonNull Optional<Channel> getAffectedChannel()
ChannelUserListChangeEvent
getAffectedChannel
in interface ChannelUserListChangeEvent
public @NonNull ChannelUserListChangeEvent.Change getChange()
ChannelUserListChangeEvent
getChange
in interface ChannelUserListChangeEvent
public @NonNull User getTarget()
public @NonNull User getUser()
ChannelUserListChangeEvent
getUser
in interface ChannelUserListChangeEvent
protected @NonNull ToStringer toStringer()
ClientEventBase
ToStringer
for the command.toStringer
in class ActorChannelMessageEventBase<Actor>
Copyright © 2013–2021 Kitteh. All rights reserved.