fix: error when opening a ticket

...when neither claiming nor close button are enabled
This commit is contained in:
Isaac 2021-09-25 18:38:12 +01:00
parent ee20f85f85
commit a90f4eba2d
No known key found for this signature in database
GPG Key ID: 87B9B6BD04EB7534

View File

@ -127,7 +127,7 @@ module.exports = class TicketManager extends EventEmitter {
.join(', ') .join(', ')
: ''; : '';
const sent = await t_channel.send({ const sent = await t_channel.send({
components: [components], components: cat_row.claiming || settings.close_button ? [components] : [],
content: i18n('ticket.opening_message.content', mentions, creator.user.toString()), content: i18n('ticket.opening_message.content', mentions, creator.user.toString()),
embeds: [embed] embeds: [embed]
}); });