Only add button row if it has buttons

This commit is contained in:
Tarrgon
2026-06-25 14:02:26 -04:00
parent 44040c6b0b
commit 73c8a38db3
+1 -1
View File
@@ -32,7 +32,7 @@ async function postTicket(client: Client, data: TicketUpdate) {
const row = await getButtons(ticket); const row = await getButtons(ticket);
const message = await channel.send({ embeds: [embed], components: [row] }); const message = await channel.send({ embeds: [embed], components: row.components.length > 0 ? [row] : [] });
await Database.putTicketOrUpdate(ticket.id, message.id); await Database.putTicketOrUpdate(ticket.id, message.id);