Skip to content

Commit

Permalink
fix(messageUpdate): fix oldMessage#mentions type (#1377)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonovanDMC authored Jun 5, 2022
1 parent e888253 commit a2e3a00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ declare namespace Eris {
embeds: Embed[];
flags: number;
mentionedBy?: unknown;
mentions: string[];
mentions: User[];
pinned: boolean;
roleMentions: string[];
tts: boolean;
Expand Down
2 changes: 1 addition & 1 deletion lib/gateway/Shard.js
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ class Shard extends EventEmitter {
* @prop {Array<Object>} oldMessage.embeds Array of embeds
* @prop {Number} oldMessage.flags Old message flags (see constants)
* @prop {Object} oldMessage.mentionedBy Object of if different things mention the bot user
* @prop {Array<String>} oldMessage.mentions Array of mentioned users' ids
* @prop {Array<User>} oldMessage.mentions Array of mentioned users' ids
* @prop {Boolean} oldMessage.pinned Whether the message was pinned or not
* @prop {Array<String>} oldMessage.roleMentions Array of mentioned roles' ids.
* @prop {Boolean} oldMessage.tts Whether to play the message using TTS or not
Expand Down

0 comments on commit a2e3a00

Please sign in to comment.