Skip to main content

Module: @sapphire/plugin-editable-commands

Type Aliases

MessageOptions

Ƭ MessageOptions: MessageCreateOptions | MessageReplyOptions | MessageEditOptions

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:3

Functions

free

free(message): boolean

Removes the tracked response for message.

Parameters

NameTypeDescription
messageMessage<boolean>The message to free from tracking.

Returns

boolean

Whether the message was tracked.

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:15


get

get(message): Message | null

Gets the tracked response to message, if any was tracked and was not deleted.

Parameters

NameTypeDescription
messageMessage<boolean>The message to get the reply from.

Returns

Message | null

The replied message, if any.

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:21


reply

reply(message, options): Promise<Message>

Sends a reply message as a response for message, and tracks it.

Parameters

NameTypeDescription
messageMessage<boolean>The message to replies to.
optionsstring | MessageOptionsThe options for the message sending, identical to TextBasedChannel#send's options.

Returns

Promise<Message>

The response message.

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:35


send

send(message, options): Promise<Message>

Sends a message as a response for message, and tracks it.

Parameters

NameTypeDescription
messageMessage<boolean>The message to replies to.
optionsstring | MessageOptionsThe options for the message sending, identical to TextBasedChannel#send's options.

Returns

Promise<Message>

The response message.

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:28


track

track(message, response): void

Tracks a response with a message, in a way that if send is called with message, response will be edited.

Parameters

NameTypeDescription
messageMessage<boolean>The message to track when editing.
responseMessage<boolean>The response to edit when using send with message.

Returns

void

Defined in

node_modules/@skyra/editable-commands/dist/index.d.ts:9