Format and lint

This commit is contained in:
2024-01-18 15:37:17 +01:00
parent 847a8663d8
commit 13ada314f3
6 changed files with 42 additions and 39 deletions

View File

@@ -12,17 +12,17 @@ export = {
data: new SlashCommandBuilder()
.setName("pp")
.setDescription("Shows pp size")
.addUserOption(
option =>
option
.setName("user")
.setDescription("User to show pp size")
.setRequired(false)
.addUserOption(option =>
option
.setName("user")
.setDescription("User to show pp size")
.setRequired(false),
)
.setDMPermission(false),
async execute(interaction) {
const user = (interaction.options.getUser("user") || interaction.user) as User
const user = (interaction.options.getUser("user") ||
interaction.user) as User
const embedColor = Number(color.replace("#", "0x"))
let size: number
@@ -33,11 +33,13 @@ export = {
}
await interaction.reply({
embeds: [{
title: `${user.username}'s pp size`,
description: `8${"=".repeat(size)}D`,
color: embedColor
}]
embeds: [
{
title: `${user.username}'s pp size`,
description: `8${"=".repeat(size)}D`,
color: embedColor,
},
],
})
}
} as Command
},
} as Command