mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
types(Message): specify rawData arg type (#11123)
Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
@@ -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) {
|
||||
|
||||
2
packages/discord.js/typings/index.d.ts
vendored
2
packages/discord.js/typings/index.d.ts
vendored
@@ -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>>>;
|
||||
|
||||
Reference in New Issue
Block a user