Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/discord.js/src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -1106,7 +1106,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) {
Expand Down
2 changes: 1 addition & 1 deletion packages/discord.js/typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2240,7 +2240,7 @@ export class Message<InGuild extends boolean = boolean> extends Base {
public edit(
content: MessageEditOptions | 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>>>;
Expand Down