Fixed formatting on all command files

This commit is contained in:
2024-01-20 17:19:08 +01:00
parent f34923e2c5
commit a3791d170c
25 changed files with 655 additions and 1168 deletions

View File

@@ -1,12 +1,4 @@
import {
SlashCommandBuilder,
PermissionFlagsBits,
ButtonBuilder,
ActionRowBuilder,
ButtonStyle,
ChannelType,
TextChannel
} from "discord.js"
import { SlashCommandBuilder, PermissionFlagsBits, ButtonBuilder, ActionRowBuilder, ButtonStyle, ChannelType, TextChannel } from "discord.js"
import { color, devMessage } from "config/options.json"
import { Command } from "interfaces"
@@ -27,13 +19,8 @@ export = {
.addChannelOption(option =>
option
.setName("channel")
.setDescription(
"The channel to send the application to."
)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement
)
.setDescription("The channel to send the application to.")
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.setRequired(true)
)
)
@@ -44,13 +31,8 @@ export = {
.addChannelOption(option =>
option
.setName("channel")
.setDescription(
"The channel to send the application to."
)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement
)
.setDescription("The channel to send the application to.")
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.setRequired(true)
)
)
@@ -61,13 +43,8 @@ export = {
.addChannelOption(option =>
option
.setName("channel")
.setDescription(
"The channel to send the verfiy message to."
)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement
)
.setDescription("The channel to send the verfiy message to.")
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.setRequired(true)
)
)
@@ -78,13 +55,8 @@ export = {
.addChannelOption(option =>
option
.setName("channel")
.setDescription(
"The channel to send the waiting list message to."
)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement
)
.setDescription("The channel to send the waiting list message to.")
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.setRequired(true)
)
)
@@ -95,13 +67,8 @@ export = {
.addChannelOption(option =>
option
.setName("channel")
.setDescription(
"The channel to send the application to."
)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement
)
.setDescription("The channel to send the application to.")
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.setRequired(true)
)
)
@@ -120,8 +87,7 @@ export = {
if (subcommand === "sendguildapplication") {
title = "Guild Application"
description =
"You can apply for the guild by clicking the button below."
description = "You can apply for the guild by clicking the button below."
customId = "guildapply"
label = "Apply"
emoji = "✅"
@@ -129,8 +95,7 @@ export = {
if (subcommand === "sendstaffapplication") {
title = "Staff Application"
description =
"You can apply for the staff team by clicking the button below."
description = "You can apply for the staff team by clicking the button below."
customId = "staffapply"
label = "Apply"
emoji = "✅"
@@ -138,8 +103,7 @@ export = {
if (subcommand === "sendinactivityapplication") {
title = "Inactivity Log"
description =
"You can send an inactivity log by clicking the button below."
description = "You can send an inactivity log by clicking the button below."
customId = "guildinactivitylog"
label = "Submit"
emoji = "✅"
@@ -162,20 +126,18 @@ export = {
}
await channel.send({
embeds: [
{
title: title,
description: description,
color: embedColor,
thumbnail: {
url: interaction.guild!.iconURL() || ""
},
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL() || undefined
}
embeds: [{
title: title,
description: description,
color: embedColor,
thumbnail: {
url: interaction.guild!.iconURL() || ""
},
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL() || undefined
}
],
}],
components: [
new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()