This commit is contained in:
Isaac
2021-05-12 18:13:58 +01:00
parent a0ec19faee
commit 1a8b86dee0
3 changed files with 17 additions and 0 deletions

View File

@@ -37,6 +37,16 @@ module.exports = class TicketManager extends EventEmitter {
? this.client.cryptr.decrypt(t_row.topic)
: '';
if (cat_row.ping instanceof Array) {
let mentions = cat_row.ping.map(id => id === 'everyone'
? '@everyone'
: id === 'here'
? '@here'
: `<@&${id}>`);
await t_channel.send(mentions.join(', '));
}
await t_channel.send(member.user.toString());
if (cat_row.image) {