Compare commits

..

No commits in common. "fe1fdf15f6c159cb95ade2bf3d55a86a20ba3de7" and "cfb7b31b361651b63357e5a57f47355cf6a30984" have entirely different histories.

1 changed files with 1 additions and 10 deletions

View File

@ -24,7 +24,6 @@ export class TicketComponenets {
.select()
.from(ticketsTable)
.where(eq(ticketsTable.user, inter.user.id));
if (check.length >= 1) {
await inter.reply({
content: "You already have a ticket open.",
@ -55,20 +54,12 @@ export class TicketComponenets {
PermissionsBitField.Flags.SendMessages,
],
},
{
id: inter.client.user.id,
allow: [
PermissionsBitField.Flags.ViewChannel,
PermissionsBitField.Flags.SendMessages
],
}
],
});
const category = inter.guild!.channels.cache.get(
const category = inter.guild?.channels.cache.get(
Bun.env.TICKET_CATEGORY,
) as CategoryChannel;
channel = await channel.setParent(category);
const embed = new EmbedBuilder()