Updated all color vars to new one
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -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") {
|
||||
|
||||
@@ -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: [{
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user