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