public abstract class ChannelCommand extends Command
Modifier | Constructor and Description |
---|---|
protected |
ChannelCommand(Client client,
String channel)
Constructs a command for a given channel.
|
Modifier and Type | Method and Description |
---|---|
String |
getChannel()
Gets the channel this command affects.
|
protected ToStringer |
toStringer()
Generates a partial
ToStringer for the command. |
protected ChannelCommand(@Nonnull Client client, @Nonnull String channel)
client
- the client on which this command is executingchannel
- channel targetedIllegalArgumentException
- if null parameters@Nonnull public String getChannel()
@Nonnull protected ToStringer toStringer()
Command
ToStringer
for the command.toStringer
in class Command
Copyright © 2013–2019 Kitteh. All rights reserved.