Skip to content

Commit

Permalink
fix(djs): more cache fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobiah committed Apr 30, 2020
1 parent 18ca760 commit f42c454
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/eventHandlers/JoinNotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class JoinNotify extends Handler {
async execute(...[guild]) {
if (!games.includes('LOGGING')) return;
this.logger.debug(`Running ${this.id} for ${this.event}. Params: ${guild}`);
const bots = guild.members.filter(member => member.user.bot);
const bots = guild.members.cache.filter(member => member.user.bot);

const tokens = [
`${guild.name} (${guild.id})`,
Expand Down
2 changes: 1 addition & 1 deletion src/eventHandlers/LeaveNotify.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LeaveNotify extends Handler {
async execute(...[guild]) {
if (!games.includes('LOGGING')) return;
this.logger.debug(`Running ${this.id} for ${this.event}. Params: ${guild}`);
const bots = guild.members.filter(member => member.user.bot);
const bots = guild.members.cache.filter(member => member.user.bot);
const tokens = [
`${guild.name} (${guild.id})`,
guild.owner ? `**Owner:** ${guild.owner.user.username}#${guild.owner.user.discriminator} (${guild.ownerID})` : '',
Expand Down

0 comments on commit f42c454

Please sign in to comment.