public class TagMessageCommand extends Command<TagMessageCommand>
Command.Tags| Constructor and Description |
|---|
TagMessageCommand(@NonNull Client client)
Constructs a tag message command.
|
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the command.
|
@NonNull TagMessageCommand |
target(@NonNull MessageReceiver target) |
@NonNull TagMessageCommand |
target(@NonNull String target)
Sets the target of this message.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
getClient, sendCommandLine, sendCommandLine, tags, toStringpublic TagMessageCommand(@NonNull Client client)
client - the client on which this command is executingIllegalArgumentException - if null parameterspublic @NonNull TagMessageCommand target(@NonNull String target)
target - targetIllegalArgumentException - if target is null or contains invalid characterspublic @NonNull TagMessageCommand target(@NonNull MessageReceiver target)
public void execute()
execute in class Command<TagMessageCommand>IllegalStateException - if target or message is not definedprotected @NonNull ToStringer toStringer()
CommandToStringer for the command.toStringer in class Command<TagMessageCommand>Copyright © 2013–2021 Kitteh. All rights reserved.