public class VersionEvent extends Event implements GenericCTCPEvent, GenericChannelEvent
CoreHooks
automatically responds correctly. Unless CoreHooks
is removed from the
bot's ListenerManager
,
Listeners of this event should not send a response as the user will
get two responses
Constructor and Description |
---|
VersionEvent(PircBotX bot,
UserHostmask userHostmask,
User user,
Channel channel) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Channel |
getChannel()
The target channel of the VERSION request.
|
User |
getUser()
The source user that generated the event.
|
UserHostmask |
getUserHostmask()
The source user hostmask that generated the event.
|
int |
hashCode() |
void |
respond(String response)
Respond with a CTCP response to the user
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public VersionEvent(PircBotX bot, @NonNull UserHostmask userHostmask, @NonNull User user, Channel channel)
public void respond(String response)
respond
in interface GenericEvent
respond
in class Event
response
- The response to send@Generated(value="lombok") public UserHostmask getUserHostmask()
GenericUserEvent
getUserHostmask
in interface GenericUserEvent
@Generated(value="lombok") public User getUser()
GenericUserEvent
getUser
in interface GenericUserEvent
@Nullable @Generated(value="lombok") public Channel getChannel()
null
means that that the target is us.getChannel
in interface GenericChannelEvent
Copyright © 2010–2020 Leon Blakey. All rights reserved.