Skip to content

Commit

Permalink
Fixes #281
Browse files Browse the repository at this point in the history
  • Loading branch information
carolinaisslaying committed Mar 29, 2024
1 parent cb15a5a commit 089740f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Util/Services/discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,12 @@ bot.on("ready", async () => {
});

bot.on("presenceUpdate", async (_oldPresence, newPresence) => {
await global.redis?.hmset(
prefix,
newPresence.member.id,
newPresence.status || PresenceUpdateStatus.Offline
);
if (newPresence.member)
await global.redis?.hmset(
prefix,
newPresence.member.id,
newPresence.status || PresenceUpdateStatus.Offline
);
});

bot.on("guildMemberAdd", async (member) => {
Expand Down

0 comments on commit 089740f

Please sign in to comment.