mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-04 09:21:25 +03:00
Pings
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user