Send the embed in the same message as the ping

This commit is contained in:
Isaac
2021-05-16 18:18:41 +01:00
parent b11d79e370
commit 002240d777

View File

@@ -97,8 +97,6 @@ module.exports = class TicketManager extends EventEmitter {
await t_channel.send(mentions.join(', '));
}
await t_channel.send(member.user.toString());
if (cat_row.image) {
await t_channel.send(cat_row.image);
}
@@ -114,7 +112,7 @@ module.exports = class TicketManager extends EventEmitter {
if (topic) embed.addField(i18n('commands.new.opening_message.fields.topic'), topic);
let sent = await t_channel.send(embed);
let sent = await t_channel.send(member.user.toString(), embed);
await sent.pin({ reason: 'Ticket opening message' });
await t_row.update({