Skip to content

Commit

Permalink
revert: fix(presenceUpdate): don’t fetch() members
Browse files Browse the repository at this point in the history
this stops any updates whatsoever, it seems needed
  • Loading branch information
tippfehlr committed Mar 9, 2024
1 parent 0ded481 commit b33c16e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ client.on(Events.PresenceUpdate, async (oldMember, newMember) => {
const highestBotRolePosition = newMember.guild.members.me?.roles.highest.position;
const userIDHash = createHash('sha256').update(newMember.user.id).digest('base64');
const guildConfig = getGuildConfig(guildID);
// await newMember.member?.fetch();
await newMember.member?.fetch();

if (
guildConfig.requiredRoleID !== null &&
Expand Down

0 comments on commit b33c16e

Please sign in to comment.