Skip to content

Commit

Permalink
https://github.com/discordjs/discord.js/pull/8959
Browse files Browse the repository at this point in the history
Signed-off-by: RedGuy12 <paul@reid-family.org>
  • Loading branch information
RedGuy12 committed May 19, 2023
1 parent 457e368 commit c7adb6b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
8 changes: 8 additions & 0 deletions modules/modlogs/index.ts
Expand Up @@ -664,6 +664,14 @@ defineEvent("guildUpdate", async (oldGuild, newGuild) => {
"server",
);

if (oldGuild.safetyAlertsChannel?.id !== newGuild.safetyAlertsChannel?.id) {
await log(
`${LoggingEmojis.SettingChange} Safety notifications channel ${
newGuild.safetyAlertsChannel ? `set to ${newGuild.safetyAlertsChannel.toString()}` : "unset"
}`,
"server",
);
}
if (oldGuild.splash !== newGuild.splash) {
const url = newGuild.splashURL({ size: 128 });
await log(
Expand Down
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c7adb6b

Please sign in to comment.