Skip to content

Commit

Permalink
fix: stale notification pinging staff instead of creator (closes #459)
Browse files Browse the repository at this point in the history
  • Loading branch information
eartharoid committed Aug 24, 2023
1 parent 8fd8c45 commit 59a6358
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/listeners/client/ready.js
Expand Up @@ -153,7 +153,7 @@ module.exports = class extends Listener {
if (messages.size > 0) {
const lastMessage = messages.first();
const staff = await isStaff(channel.guild, lastMessage.author.id);
if (staff) ping = lastMessage.author.toString();
if (staff) ping = `<@${ticket.createdById}>`;
else ping = ticket.category.pingRoles.map(r => `<@&${r}>`).join(' ');
}

Expand Down

0 comments on commit 59a6358

Please sign in to comment.