Skip to content

Commit

Permalink
Merge pull request #512 from aternosorg/purge
Browse files Browse the repository at this point in the history
fix logging of purges if no user is specified
  • Loading branch information
JulianVennen authored Oct 25, 2022
2 parents 72e0fb9 + cc37a60 commit 14683ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modbot",
"version": "3.0.2",
"version": "3.0.3",
"description": "Discord Bot for the Aternos Discord server",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/embeds/PurgeLogEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default class PurgeLogEmbed extends KeyValueEmbed {
this.setColor(colors.RED)
.setAuthor({name: `${interaction.user.tag} purged ${count} messages`})
.addPair('Channel', channelMention(interaction.channel.id))
.addPairIf(user, 'User', userMention(user.id))
.addPairIf(user, 'User', userMention(user?.id))
.addPairIf(regex, 'Regex', codeBlock(regex))
.addPair('Tested messages', limit)
.setFooter({text: interaction.user.id.toString()});
Expand Down

0 comments on commit 14683ef

Please sign in to comment.