Skip to content

Commit

Permalink
fix: user and mod log exclude id's (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
benw202 authored Jan 18, 2024
1 parent 6c5f02d commit 628d4aa
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 17 deletions.
1 change: 1 addition & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

Update <small>_ January 2024</small>

- fix: user and mod log exclude id's (18/01/2024)
- feat: New FBW Utils and Moderation bot (08/01/2024)
13 changes: 5 additions & 8 deletions config/production.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
"guildId": "738864299392630914",
"modLogExclude": [
"910632773117702185",
"856826179491594271",
"864492608163807302",
"1117793446497886309",
"1163130603219206194"
"1195041929570832475",
"1195045377431322754",
"1163130801131634868"
],
"roleAssignmentIds": [
{
Expand Down Expand Up @@ -116,10 +115,8 @@
"userLogExclude": [
"628400349979344919",
"910632773117702185",
"856826179491594271",
"864492608163807302",
"1117793446497886309",
"1163130603219206194",
"1195041929570832475",
"1195045377431322754",
"1163130801131634868"
]
}
14 changes: 6 additions & 8 deletions config/staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
},
"guildId": "1162804406681608252",
"modLogExclude": [
"628400349979344919",
"910632773117702185",
"856826179491594271",
"864492608163807302",
"1117793446497886309",
"1163130603219206194"
"1195041929570832475",
"1195045377431322754",
"1163130801131634868"
],
"roleAssignmentIds": [
{
Expand Down Expand Up @@ -110,10 +110,8 @@
"userLogExclude": [
"628400349979344919",
"910632773117702185",
"856826179491594271",
"864492608163807302",
"1117793446497886309",
"1163130603219206194",
"1195041929570832475",
"1195045377431322754",
"1163130801131634868"
]
}
2 changes: 1 addition & 1 deletion src/events/logging/messageUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default event(Events.MessageUpdate, async (_, oldMessage, newMessage) =>
if (userLogsChannel && !constantsConfig.userLogExclude.includes(oldMessage.author!.id)) {
const messageUpdateEmbed = makeEmbed({
color: Colors.Orange,
thumbnail: { url: `${imageBaseUrl}/moderation/message_updated.png` },
thumbnail: { url: `${imageBaseUrl}/moderation/message_edited.png` },
author: {
name: oldMessage.author.tag,
iconURL: oldMessage.author.displayAvatarURL(),
Expand Down

0 comments on commit 628d4aa

Please sign in to comment.