MessageCommand
class
MessageCommand
sourceexport class MessageCommand extends BaseCommand export class MessageCommand extends BaseCommandconstructor(data?: Partial<MessageCommand.Data>) constructor(data?: Partial<MessageCommand.Data>)| Param | Type | Required |
|---|---|---|
| | No |
execute(data: MessageCommand.ExecuteData): Promise<void> execute(data: MessageCommand.ExecuteData): Promise<void>| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
Promise<void> Promise<void>public source
.setCommand(...)
setCommand(data: MessageCommandBuilder.Data|JSONEncodable<MessageCommandBuilder.Data>|(((builder: MessageCommandBuilder)) => MessageCommandBuilder.Data|JSONEncodable<MessageCommandBuilder.Data>)): this setCommand(data: MessageCommandBuilder.Data|JSONEncodable<MessageCommandBuilder.Data>|(((builder: MessageCommandBuilder)) => MessageCommandBuilder.Data|JSONEncodable<MessageCommandBuilder.Data>)): this| Param | Type | Required |
|---|---|---|
| | Yes |
Returns:
this thistoJSON(): MessageCommand.Data toJSON(): MessageCommand.DataReturns:
MessageCommand.Data MessageCommand.DataCommandType.Message CommandType.Message