mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-17 08:47:27 +00:00
types(Message): specify rawData arg type (#11123)
Co-authored-by: Almeida <github@almeidx.dev>
This commit is contained in:
@@ -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
@@ -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>>>;
|
||||
|
||||
Reference in New Issue
Block a user