Replaced clang format with prettuier (sadly)
This commit is contained in:
@@ -1,6 +1,14 @@
|
||||
import { SlashCommandBuilder } from "discord.js"
|
||||
import { color, devMessage } from "../../config/options.json"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "../../config/reqs.json"
|
||||
import {
|
||||
bwfkdr,
|
||||
bwstars,
|
||||
bwwins,
|
||||
swstars,
|
||||
swkdr,
|
||||
duelswins,
|
||||
duelswlr,
|
||||
} from "../../config/reqs.json"
|
||||
import { Command } from "../interfaces"
|
||||
|
||||
export = {
|
||||
@@ -15,44 +23,66 @@ export = {
|
||||
.setDescription("Displays the requirements for the guild."),
|
||||
|
||||
async execute(interaction) {
|
||||
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
const footerText = interaction.guild ? interaction.guild.name : interaction.user.username
|
||||
const footerIcon = interaction.guild ? interaction.guild.iconURL({ forceStatic: false }) : interaction.user.avatarURL({ forceStatic: false })
|
||||
const footerText = interaction.guild
|
||||
? interaction.guild.name
|
||||
: interaction.user.username
|
||||
const footerIcon = interaction.guild
|
||||
? interaction.guild.iconURL({ forceStatic: false })
|
||||
: interaction.user.avatarURL({ forceStatic: false })
|
||||
|
||||
await interaction.editReply({
|
||||
embeds: [{
|
||||
title: "Requirements",
|
||||
description: "**You must make 100k-150k weekly GEXP.\nAs well as onne of the game stats below**",
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url: interaction?.guild?.iconURL({ forceStatic: false }) || ""
|
||||
embeds: [
|
||||
{
|
||||
title: "Requirements",
|
||||
description:
|
||||
"**You must make 100k-150k weekly GEXP.\nAs well as onne of the game stats below**",
|
||||
color: embedColor,
|
||||
thumbnail: {
|
||||
url:
|
||||
interaction?.guild?.iconURL({
|
||||
forceStatic: false,
|
||||
}) || "",
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "**Bedwars**",
|
||||
value:
|
||||
"**Stars:** `" +
|
||||
bwstars.toString() +
|
||||
"`\n**Wins:** `" +
|
||||
bwwins.toString() +
|
||||
"`\n**FKDR:** `" +
|
||||
bwfkdr.toString() +
|
||||
"`",
|
||||
},
|
||||
{
|
||||
name: "**Skywars**",
|
||||
value:
|
||||
"**Stars:** `" +
|
||||
swstars.toString() +
|
||||
"`\n**KDR:** `" +
|
||||
swkdr.toString() +
|
||||
"`",
|
||||
},
|
||||
{
|
||||
name: "**Duels**",
|
||||
value:
|
||||
"**Wins:** `" +
|
||||
duelswins.toString() +
|
||||
"`\n**WLR:** `" +
|
||||
duelswlr.toString() +
|
||||
"`",
|
||||
},
|
||||
],
|
||||
footer: {
|
||||
text: footerText + " | " + devMessage,
|
||||
icon_url: footerIcon || undefined,
|
||||
},
|
||||
},
|
||||
fields: [
|
||||
{
|
||||
name: "**Bedwars**",
|
||||
value: "**Stars:** `" + bwstars.toString() +
|
||||
"`\n**Wins:** `" + bwwins.toString() +
|
||||
"`\n**FKDR:** `" + bwfkdr.toString() + "`"
|
||||
},
|
||||
{
|
||||
name: "**Skywars**",
|
||||
value: "**Stars:** `" + swstars.toString() +
|
||||
"`\n**KDR:** `" + swkdr.toString() + "`"
|
||||
},
|
||||
{
|
||||
name: "**Duels**",
|
||||
value: "**Wins:** `" + duelswins.toString() +
|
||||
"`\n**WLR:** `" + duelswlr.toString() + "`"
|
||||
}
|
||||
],
|
||||
footer: {
|
||||
text: footerText + " | " + devMessage,
|
||||
icon_url: footerIcon || undefined
|
||||
}
|
||||
}]
|
||||
],
|
||||
})
|
||||
}
|
||||
} as Command
|
||||
},
|
||||
} as Command
|
||||
|
||||
Reference in New Issue
Block a user