public class RemoveChannelBanEvent extends Event implements GenericChannelModeEvent
This is a type of mode change and therefor is also dispatched in a
ModeEvent
Constructor and Description |
---|
RemoveChannelBanEvent(PircBotX bot,
Channel channel,
UserHostmask userHostmask,
User user,
UserHostmask hostmask) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The channel in which the mode change took place.
|
UserHostmask |
getHostmask()
The ban hostmask that was set.
|
User |
getUser()
The user that performed the mode change.
|
UserHostmask |
getUserHostmask()
The user that performed the mode change.
|
int |
hashCode() |
void |
respond(String response)
Respond by send a message in the channel to the user that set the mode
(Warning: not to the user that got unbanned!) in
user: message format |
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public RemoveChannelBanEvent(PircBotX bot, @NonNull Channel channel, @NonNull UserHostmask userHostmask, User user, @NonNull UserHostmask hostmask)
public void respond(String response)
user: message
formatrespond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public UserHostmask getHostmask()
@Generated(value="lombok") public Channel getChannel()
getChannel
in interface GenericChannelEvent
@Generated(value="lombok") public UserHostmask getUserHostmask()
getUserHostmask
in interface GenericUserEvent
@Nullable @Generated(value="lombok") public User getUser()
getUser
in interface GenericUserEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.