public class WhoisCommand extends Command<WhoisCommand>
Command.Tags| Constructor and Description |
|---|
WhoisCommand(@NonNull Client client)
Constructs the command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
@NonNull WhoisCommand |
server(@Nullable String server)
Sets the server to query.
|
@NonNull WhoisCommand |
target(@NonNull String target)
Sets the target nickname for the command.
|
String |
toString() |
getClient, sendCommandLine, sendCommandLine, tags, toStringerpublic WhoisCommand(@NonNull Client client)
client - the clientIllegalArgumentException - if client is nullpublic @NonNull 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 onepublic @NonNull WhoisCommand target(@NonNull String target)
target - target nickIllegalArgumentException - for invalid targetpublic void execute()
Commandexecute in class Command<WhoisCommand>public String toString()
toString in class Command<WhoisCommand>Copyright © 2013–2021 Kitteh. All rights reserved.