Skip to content

Commit

Permalink
fix(guildMemberRemove): send to leave channel only
Browse files Browse the repository at this point in the history
  • Loading branch information
Ecorte committed Dec 13, 2024
1 parent dd1de11 commit b139293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/watcher/src/listeners/events/guildMemberRemove.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default class extends Listener<"guildMemberRemove", WatcherClient> {
}

public override async execute(member: GuildMember) {
const channels = (await this.container.manager.getLogChannel(member.guild.id))?.filter((c) => c.memberEvents.join);
const channels = (await this.container.manager.getLogChannel(member.guild.id))?.filter((c) => c.memberEvents.leave);
if (!channels || channels.length === 0) return;

const embed: APIEmbed = {
Expand Down

0 comments on commit b139293

Please sign in to comment.