public class FingerEvent extends Event implements GenericChannelUserEvent
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 |
---|
FingerEvent(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 FINGER request.
|
User |
getUser()
The user that sent the FINGER request.
|
UserHostmask |
getUserHostmask()
The user hostmask that sent the FINGER request.
|
int |
hashCode() |
void |
respond(String response)
Respond with a CTCP response to the user
|
String |
toString() |
compareTo, getBot, getId, getTimestamp
getBot, getTimestamp
compareTo
public FingerEvent(PircBotX bot, @NonNull UserHostmask userHostmask, User user, @Nullable Channel channel)
public void respond(String response)
respond
in interface GenericEvent
respond
in class Event
response
- The response to send@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.