Skip to content

Commit

Permalink
try to fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Schlauer-Hax committed Sep 7, 2023
1 parent 4ba1b70 commit 0aa65b0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .gitignore
@@ -1,2 +1,3 @@
.DS_Store
.env
.env
config.json
8 changes: 4 additions & 4 deletions interactions.ts
Expand Up @@ -139,7 +139,7 @@ export async function handleInteraction(interaction: Interaction) {
value: `> ${await getServerURLs(interaction.user.id)}`,
}, {
name: `Last Login:`,
value: `\`\`\`${JSON.stringify(login[ 0 ])}\`\`\``,
value: `\`\`\`${JSON.stringify(login[ 0 ] ?? "none")}\`\`\``,
});
embed.setFooter({
text: login[ 1 ] ?? "No Login" as string,
Expand All @@ -153,20 +153,20 @@ export async function handleInteraction(interaction: Interaction) {
ch.permissionOverwrites.create(interaction.user.id, {
"ViewChannel": true
});
}, 1000);
}, 5000);

const btnrow = new ActionRowBuilder<ButtonBuilder>().addComponents([
new ButtonBuilder()
.setCustomId(`close_ticket`)
.setStyle(ButtonStyle.Danger)
.setLabel(`Close Ticket`),
]);
ch.send({
await ch.send({
content: `${interaction.member} || <@&1120392307087261787>`,
embeds: [ embed ],
components: [ btnrow ],
});
interaction.reply({
await interaction.reply({
content: `> Successfully created your ticket here: ${ch}`,
ephemeral: true,
});
Expand Down

0 comments on commit 0aa65b0

Please sign in to comment.