Skip to content

Commit

Permalink
Fix types for Message.reactions (#1068)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragory authored Nov 29, 2020
1 parent aca342e commit 592313d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ declare namespace Eris {
messageReference: MessageReference | null;
pinned: boolean;
prefix?: string;
reactions: { [s: string]: unknown; count: number; me: boolean };
reactions: { [s: string]: { count: number; me: boolean } };
roleMentions: string[];
timestamp: number;
tts: boolean;
Expand Down
4 changes: 1 addition & 3 deletions lib/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ const User = require("./User");
* @prop {String} messageReference.guildID The id of the guild this message was crossposted from
* @prop {Boolean} pinned Whether the message is pinned or not
* @prop {String?} prefix The prefix used in the Message, if any (CommandClient only)
* @prop {Object} reactions An object containing the reactions on the message
* @prop {Boolean} reactions.me Whether or not the bot user did the reaction
* @prop {Number} reactions.count The number of times the reaction was used
* @prop {Object} reactions An object containing the reactions on the message. Each key is a reaction emoji and each value is an object with properties `me` (Boolean) and `count` (Number) for that specific reaction emoji.
* @prop {Array<String>} roleMentions Array of mentioned roles' ids
* @prop {Number} timestamp Timestamp of message creation
* @prop {Boolean} tts Whether to play the message using TTS or not
Expand Down

0 comments on commit 592313d

Please sign in to comment.