fix: stale notification pinging staff instead of creator (closes #459)

This commit is contained in:
Isaac 2023-08-24 23:44:02 +01:00
parent 8fd8c45cd2
commit 59a6358b37
No known key found for this signature in database
GPG Key ID: 0DE40AE37BBA5C33

View File

@ -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(' ');
}