public abstract class ChannelCommand<C extends ChannelCommand<C>> extends Command<ChannelCommand<C>>
Command.Tags| Modifier | Constructor and Description |
|---|---|
protected |
ChannelCommand(@NonNull Client client,
@NonNull String channel)
Constructs a command for a given channel.
|
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
getChannel()
Gets the channel this command affects.
|
protected @NonNull ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
execute, getClient, sendCommandLine, sendCommandLine, tags, toStringprotected ChannelCommand(@NonNull Client client, @NonNull String channel)
client - the client on which this command is executingchannel - channel targetedIllegalArgumentException - if null parameterspublic @NonNull String getChannel()
protected @NonNull ToStringer toStringer()
CommandToStringer for the command.toStringer in class Command<ChannelCommand<C extends ChannelCommand<C>>>Copyright © 2013–2021 Kitteh. All rights reserved.