Replaced clang format with prettuier (sadly)

This commit is contained in:
2023-12-28 16:47:52 +01:00
parent ca5bbd0b81
commit 117140fe9d
99 changed files with 13519 additions and 12011 deletions

View File

@@ -9,7 +9,6 @@ export = {
type: "button",
async execute(interaction) {
await interaction.deferReply({ ephemeral: true })
const user = interaction.user
@@ -18,7 +17,6 @@ export = {
const accepted = await waitinglist.find()
for (let i = 0; i < accepted.length; i++) {
const uuid = accepted[i].uuid
const guild = await getGuild(uuid)
@@ -26,36 +24,36 @@ export = {
await waitinglist.findOneAndDelete({ uuid: uuid })
continue
}
}
const fields = []
for (let i = 0; i < accepted.length; i++) {
const timestamp = Math.floor(accepted[i].timestamp / 1000)
fields.push({
name: `${i + 1}. ${accepted[i].IGN}`,
value: `TS: <t:${timestamp}:R>`
value: `TS: <t:${timestamp}:R>`,
})
}
await message.edit({
embeds: [{
title: embed.title!,
description: embed.description!,
color: embed.color!,
footer: {
text: "Last updated by " + user.username,
icon_url: user.avatarURL()!,
embeds: [
{
title: embed.title!,
description: embed.description!,
color: embed.color!,
footer: {
text: "Last updated by " + user.username,
icon_url: user.avatarURL()!,
},
thumbnail: embed.thumbnail!,
fields: fields,
timestamp: new Date().toISOString(),
},
thumbnail: embed.thumbnail!,
fields: fields,
timestamp: new Date().toISOString(),
}],
],
})
await interaction.editReply("Updated the waiting list")
}
} as Button
},
} as Button