types(Message): specify rawData arg type (#11123)

Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
Pavel-Boyazov
2025-12-17 22:04:17 +03:00
committed by GitHub
parent cad826fc03
commit 427636ee75
2 changed files with 2 additions and 2 deletions

View File

@@ -1109,7 +1109,7 @@ class Message extends Base {
* method allows you to see if there are differences in content, embeds, attachments, nonce and tts properties.
*
* @param {Message} message The message to compare it to
* @param {APIMessage} rawData Raw data passed through the WebSocket about this message
* @param {APIMessage} [rawData] Raw data passed through the WebSocket about this message
* @returns {boolean}
*/
equals(message, rawData) {

View File

@@ -2242,7 +2242,7 @@ export class Message<InGuild extends boolean = boolean> extends Base {
| MessagePayload
| string,
): Promise<OmitPartialGroupDMChannel<Message<InGuild>>>;
public equals(message: Message, rawData: unknown): boolean;
public equals(message: Message, rawData?: APIMessage): boolean;
public fetchReference(): Promise<OmitPartialGroupDMChannel<Message<InGuild>>>;
public fetchWebhook(): Promise<Webhook>;
public crosspost(): Promise<OmitPartialGroupDMChannel<Message<InGuild>>>;