Skip to content

Commit

Permalink
Merge pull request #118 from zhiyan114/dev
Browse files Browse the repository at this point in the history
Update in the same channel should not consitute a log
  • Loading branch information
zhiyan114 authored May 27, 2024
2 parents e3b1442 + 914fd57 commit cccc3fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/events/discordEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ export class DiscordEvents extends baseEvent {
const config = this.client.config.VCJoinLog;
const channel = await this.client.channels.fetch(config.channelID);
if(!channel || channel.type !== ChannelType.GuildText) return;
if(!now.member || now.member.user.bot) return;
if(!now.channel) return;
if(old.channel?.id === now.channel.id) return;
if(!now.member || now.member.user.bot) return;
if(config.excludeChannels.includes(now.channel.id)) return;

// Prepare embed
Expand Down

0 comments on commit cccc3fe

Please sign in to comment.