From 726073fef7e0e7bf7d8d5e4a4546d8056719b59f Mon Sep 17 00:00:00 2001 From: BannerBomb Date: Thu, 1 Jul 2021 19:42:11 -0400 Subject: [PATCH] docs: WebSocketShard#send and TextBasedChannel#send (#5998) --- src/structures/interfaces/TextBasedChannel.js | 2 +- typings/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/interfaces/TextBasedChannel.js b/src/structures/interfaces/TextBasedChannel.js index 581400a5c..bc68c2457 100644 --- a/src/structures/interfaces/TextBasedChannel.js +++ b/src/structures/interfaces/TextBasedChannel.js @@ -106,7 +106,7 @@ class TextBasedChannel { /** * Sends a message to this channel. * @param {string|MessagePayload|MessageOptions} options The options to provide - * @returns {Promise} + * @returns {Promise} * @example * // Send a basic message * channel.send('hello!') diff --git a/typings/index.d.ts b/typings/index.d.ts index 50cacee83..5c4ad50b4 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -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): this; public on(event: 'close', listener: (event: CloseEvent) => Awaited): this;