Skip to content

Commit

Permalink
fix useless logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Larsundso committed Dec 31, 2024
1 parent 3843fbd commit e565f02
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/Events/BotEvents/messageEvents/messageCreate/antivirus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ export default async (msg: Discord.Message) => {

const language = await client.util.getLanguage(msg.guildId);

log(
settings?.linklogging && settings?.linklogchannels.length
? settings.linklogchannels
: msg.channel,
msg,
language,
result,
);
if (!msg.inGuild() || result.triggers) {
log(
settings?.linklogging && settings?.linklogchannels.length
? settings.linklogchannels
: msg.channel,
msg,
language,
result,
);
}

if (!msg.inGuild()) {
await API.channels.deleteOwnMessageReaction(
Expand Down

0 comments on commit e565f02

Please sign in to comment.