Skip to content

Commit

Permalink
feat(MessageMentions): cache mentioned members (#3601)
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceEEC authored Dec 27, 2019
1 parent e660ea9 commit 97eac66
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/structures/MessageMentions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ class MessageMentions {
} else {
this.users = new Collection();
for (const mention of users) {
if (mention.member && message.guild) {
message.guild.members.add(Object.assign(mention.member, { user: mention }));
}
const user = message.client.users.add(mention);
this.users.set(user.id, user);
}
Expand Down

0 comments on commit 97eac66

Please sign in to comment.