public class ModeEvent extends Event implements GenericChannelUserEvent
You may find it more convenient to decode the meaning of the mode string by
using instead OpEvent
, VoiceEvent
,
SetChannelKeyEvent
, RemoveChannelKeyEvent
,
SetChannelLimitEvent
, RemoveChannelLimitEvent
,
SetChannelBanEvent
or RemoveChannelBanEvent
as appropriate.
Constructor and Description |
---|
ModeEvent(PircBotX bot,
Channel channel,
UserHostmask userHostmask,
User user,
String mode,
com.google.common.collect.ImmutableList<String> modeParsed) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The channel that the mode operation applies to.
|
String |
getMode()
The mode that has been set.
|
com.google.common.collect.ImmutableList<String> |
getModeParsed() |
User |
getUser()
The user that set the mode.
|
UserHostmask |
getUserHostmask()
The user that set the mode.
|
int |
hashCode() |
void |
respond(String response)
Respond by send a message in the channel to the user that set the mode in
user: message format |
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public void respond(String response)
user: message
formatrespond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public String getMode()
@Generated(value="lombok") public com.google.common.collect.ImmutableList<String> getModeParsed()
@Generated(value="lombok") public Channel getChannel()
getChannel
in interface GenericChannelEvent
@Nullable @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.