mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 08:13:09 +02:00
fix: error when opening a ticket
...when neither claiming nor close button are enabled
This commit is contained in:
parent
ee20f85f85
commit
a90f4eba2d
@ -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]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user