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

Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
Pavel-Boyazov
2026-07-14 21:21:51 +01:00
committed by Jiralite
co-authored by Almeida
parent 07c412791d
commit c4531d45a0
2 changed files with 2 additions and 2 deletions
@@ -1098,7 +1098,7 @@ class Message extends Base {
* without checking all the properties, use `message.id === message2.id`, which is much more efficient. This
* 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) {
+1 -1
View File
@@ -2522,7 +2522,7 @@ export class Message<InGuild extends boolean = boolean> extends Base {
public edit(
content: string | MessageEditOptions | MessagePayload,
): 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>>>;