Updated all color vars to new one

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-30 11:52:52 +01:00
parent 1d3b77ae35
commit 27bff1a007
60 changed files with 61 additions and 137 deletions

View File

@@ -1,5 +1,5 @@
import { getUUID, getIGN, getPlayer, getGuild, guildLevel } from "utils/Hypixel"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
import { ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "interfaces"
@@ -8,7 +8,6 @@ export default async function guildInfo(interaction: ChatInputCommandInteraction
const query = interaction.options.getString("query")!
const type = interaction.options.getString("type") || "ign"
const embedColor = Number(color.replace("#", "0x"))
let guild: GuildData | null
if (type === "ign") {

View File

@@ -1,12 +1,11 @@
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
import { ChatInputCommandInteraction } from "discord.js"
export default async function guildMember(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
const ign = interaction.options.getString("ign")!
const embedColor = Number(color.replace("#", "0x"))
await interaction.editReply({
embeds: [{

View File

@@ -1,5 +1,5 @@
import { getUUID, getPlayer, getGuild, getIGN } from "utils/Hypixel"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
import { ChannelType, ChatInputCommandInteraction } from "discord.js"
import { GuildData } from "interfaces"
import { redis } from "utils/Illegitimate"
@@ -10,7 +10,6 @@ export default async function guildTop(interaction: ChatInputCommandInteraction)
const query = interaction.options.getString("query")!
const type = interaction.options.getString("type") || "ign"
let amount = interaction.options.getNumber("amount") || 10
const embedColor = Number(color.replace("#", "0x"))
let guild: GuildData | null
if (interaction.channel!.type === ChannelType.DM) {