docs: WebSocketShard#send and TextBasedChannel#send (#5998)

This commit is contained in:
BannerBomb
2021-07-01 19:42:11 -04:00
committed by GitHub
parent 1e73c25fbf
commit 726073fef7
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ class TextBasedChannel {
/**
* Sends a message to this channel.
* @param {string|MessagePayload|MessageOptions} options The options to provide
* @returns {Promise<Message|Message[]>}
* @returns {Promise<Message>}
* @example
* // Send a basic message
* channel.send('hello!')

2
typings/index.d.ts vendored
View File

@@ -2277,7 +2277,7 @@ declare module 'discord.js' {
private _cleanupConnection(): void;
private _emitDestroyed(): void;
public send(data: unknown): void;
public send(data: unknown, important?: boolean): void;
public on(event: 'ready' | 'resumed' | 'invalidSession', listener: () => Awaited<void>): this;
public on(event: 'close', listener: (event: CloseEvent) => Awaited<void>): this;