Format and lint
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user