logging: reversed?
This commit is contained in:
parent
d672918579
commit
af82f70688
1 changed files with 2 additions and 2 deletions
|
|
@ -27,8 +27,8 @@ events.add("guildUpdate", "logging", async function (guild, oldGuild) {
|
||||||
const channel = await getLoggingChannel(guild);
|
const channel = await getLoggingChannel(guild);
|
||||||
if (!channel) return;
|
if (!channel) return;
|
||||||
|
|
||||||
const featuresAdded = oldGuild.features.filter((f) => !guild.features.includes(f));
|
const featuresAdded = guild.features.filter((f) => !oldGuild.features.includes(f));
|
||||||
const featuresRemoved = guild.features.filter((f) => !oldGuild.features.includes(f));
|
const featuresRemoved = oldGuild.features.filter((f) => !guild.features.includes(f));
|
||||||
|
|
||||||
if (featuresAdded.length === 0 && featuresRemoved.length === 0) return;
|
if (featuresAdded.length === 0 && featuresRemoved.length === 0) return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue