public class MessageEvent extends Event implements GenericMessageEvent, GenericChannelUserEvent
Constructor and Description |
---|
MessageEvent(PircBotX bot,
Channel channel,
String channelSource,
UserHostmask userHostmask,
User user,
String message,
com.google.common.collect.ImmutableMap<String,String> tags) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The channel to which the message was sent.
|
String |
getChannelSource()
The raw channel name, could be a special mode message eg +#channel that
only goes to voiced users.
|
String |
getMessage()
The actual message sent to the channel.
|
com.google.common.collect.ImmutableMap<String,String> |
getTags()
The IrcV3 tags
|
User |
getUser()
The user who sent the message.
|
UserHostmask |
getUserHostmask()
The user hostmask who sent the message.
|
com.google.common.collect.ImmutableMap<String,String> |
getV3Tags()
Alias of
getTags() |
int |
hashCode() |
void |
respond(String response)
Respond with a channel message in
user: message format to
the user that sent the message |
void |
respondChannel(String response)
Respond with a message to the channel without the prefix
|
void |
respondPrivateMessage(String response)
Respond with a PM directly to the user
|
void |
respondWith(String fullLine)
Like
GenericEvent.respond(String) , without the Username: prefix |
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public void respond(String response)
user: message
format to
the user that sent the messagerespond
in interface GenericEvent
respond
in class Event
response
- The response to sendpublic void respondWith(String fullLine)
GenericMessageEvent
GenericEvent.respond(String)
, without the Username: prefixrespondWith
in interface GenericMessageEvent
public void respondChannel(String response)
response
- The response to sendpublic void respondPrivateMessage(String response)
respondPrivateMessage
in interface GenericMessageEvent
response
- The response to sendpublic com.google.common.collect.ImmutableMap<String,String> getV3Tags()
getTags()
getV3Tags
in interface GenericMessageEvent
@Generated(value="lombok") public String getChannelSource()
@Generated(value="lombok") public com.google.common.collect.ImmutableMap<String,String> getTags()
@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
@Generated(value="lombok") public String getMessage()
getMessage
in interface GenericMessageEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.