public class WhoisCommand extends Command
| Constructor and Description |
|---|
WhoisCommand(Client client)
Constructs the command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
WhoisCommand |
server(String server)
Sets the server to query.
|
WhoisCommand |
target(String target)
Sets the target nickname for the command.
|
String |
toString() |
getClient, toStringerpublic WhoisCommand(@Nonnull Client client)
client - the clientIllegalArgumentException - if client is null@Nonnull public WhoisCommand server(@Nullable String server)
It's commonly possible to specify the user's nick here instead of a server, which will cause the IRC daemon to automatically send it to the user's current server.
server - server to query or null to not specify one@Nonnull public WhoisCommand target(@Nonnull String target)
target - target nickIllegalArgumentException - for invalid targetpublic void execute()
CommandCopyright © 2013–2019 Kitteh. All rights reserved.