public class AwayCommand extends Command<AwayCommand>
Command.Tags
Constructor and Description |
---|
AwayCommand(@NonNull Client client)
Constructs the command.
|
Modifier and Type | Method and Description |
---|---|
@NonNull AwayCommand |
away(@Nullable String message)
Sets the away message for the command.
|
void |
execute()
Executes the command.
|
@NonNull AwayCommand |
notAway()
Removes the away message, meaning the command will set the Client as
not away.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getClient, sendCommandLine, sendCommandLine, tags, toString
public AwayCommand(@NonNull Client client)
client
- the clientIllegalArgumentException
- if client is nullpublic @NonNull AwayCommand away(@Nullable String message)
message
- away message or null to set as not awayIllegalArgumentException
- for invalid messagepublic @NonNull AwayCommand notAway()
public void execute()
Command
execute
in class Command<AwayCommand>
protected @NonNull ToStringer toStringer()
Command
ToStringer
for the command.toStringer
in class Command<AwayCommand>
Copyright © 2013–2021 Kitteh. All rights reserved.