Skip to content

Commit

Permalink
refactor: remove tagging of member when they leave
Browse files Browse the repository at this point in the history
  • Loading branch information
juddisjudd committed Jun 3, 2024
1 parent e2c782d commit 3053c4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/events/onMemberLeave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const onMemberLeave = async (member: GuildMember | PartialGuildMember) =>
try {
member = await member.fetch();
} catch {
await channel.send(`error fetching partial member <@${member.id}>`);
await channel.send(`error fetching partial member ${member.id}`);
return;
}
}
Expand All @@ -33,6 +33,6 @@ export const onMemberLeave = async (member: GuildMember | PartialGuildMember) =>
? `${hours} hours and ${minutes} minutes`
: `${minutes} minutes`;

const farewellMessage = `<@${member.id}> has left the server. They were here for ${durationMessage}.`;
const farewellMessage = `${member.id} has left the server. They were here for ${durationMessage}.`;
channel.send(farewellMessage);
};

0 comments on commit 3053c4c

Please sign in to comment.