Updated imports and formating

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-16 17:05:15 +01:00
parent ee0250ed5e
commit 5661bc66bb
49 changed files with 819 additions and 491 deletions

View File

@@ -31,7 +31,10 @@ export = {
.setDescription(
"The channel to send the application to.",
)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
)
.setRequired(true),
),
)
@@ -45,7 +48,10 @@ export = {
.setDescription(
"The channel to send the application to.",
)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
)
.setRequired(true),
),
)
@@ -59,7 +65,10 @@ export = {
.setDescription(
"The channel to send the verfiy message to.",
)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
)
.setRequired(true),
),
)
@@ -73,7 +82,10 @@ export = {
.setDescription(
"The channel to send the waiting list message to.",
)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
)
.setRequired(true),
),
)
@@ -87,7 +99,10 @@ export = {
.setDescription(
"The channel to send the application to.",
)
.addChannelTypes(ChannelType.GuildText, ChannelType.GuildAnnouncement)
.addChannelTypes(
ChannelType.GuildText,
ChannelType.GuildAnnouncement,
)
.setRequired(true),
),
)
@@ -106,7 +121,8 @@ 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 = "✅"
@@ -114,7 +130,8 @@ 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 = "✅"
@@ -122,7 +139,8 @@ 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 = "✅"
@@ -138,34 +156,38 @@ export = {
if (subcommand === "sendwaitinglistmessage") {
title = "Waiting List"
description = "The people below were accepted into the guild\n" + "Try to invite them in order.",
customId = "waitinglistupdate"
;(description =
"The people below were accepted into the guild\n" +
"Try to invite them in order."),
(customId = "waitinglistupdate")
label = "Update"
emoji = "🔄"
}
await channel.send({
embeds: [{
title: title,
description: description,
color: embedColor,
thumbnail: {
url: interaction.guild!.iconURL() || "",
embeds: [
{
title: title,
description: description,
color: embedColor,
thumbnail: {
url: interaction.guild!.iconURL() || "",
},
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL() || undefined,
},
},
footer: {
text: interaction.guild!.name + " | " + devMessage,
icon_url: interaction.guild!.iconURL() || undefined,
}
}],
],
components: [
new ActionRowBuilder<ButtonBuilder>().addComponents(
new ButtonBuilder()
.setCustomId(customId)
.setLabel(label)
.setStyle(ButtonStyle.Primary)
.setEmoji({ name: emoji })
)
]
.setEmoji({ name: emoji }),
),
],
})
await interaction.reply({