Updated all color vars to new one
Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { color, devMessage } from "config/options"
|
||||
import { embedColor, devMessage } from "config/options"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import { bwfkdr, bwstars, bwwins, swstars, swkdr, duelswins, duelswlr } from "config/reqs"
|
||||
import { hypixelLevel, bedwarsLevel, skywarsLevel, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
@@ -16,7 +16,6 @@ export = {
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
const guildappdata = await guildapp.findOne({ userID: applicantId })
|
||||
const uuid = guildappdata!.uuid
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
const player = await getPlayer(uuid)
|
||||
if (!player) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ActionRowBuilder, ButtonStyle, ButtonBuilder, TextChannel } from "discord.js"
|
||||
import { color, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options"
|
||||
import { embedColor, waitingListChannel, waitingListMessage, hypixelGuildID } from "config/options"
|
||||
import colorLog from "utils/functions/colors"
|
||||
import mongoose from "mongoose"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
@@ -17,8 +17,6 @@ export = {
|
||||
|
||||
const user = interaction.user
|
||||
const guild = interaction.guild!
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
const message = interaction.message
|
||||
const embed = message.embeds[0]
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ButtonBuilder, ButtonStyle, ActionRowBuilder, EmbedBuilder, GuildMember, TextChannel } from "discord.js"
|
||||
import { color, applicationsChannel } from "config/options"
|
||||
import { embedColor, applicationsChannel } from "config/options"
|
||||
import { largeM, smallM, ignM } from "config/limitmessages"
|
||||
import questions from "config/questions"
|
||||
import { guildRole } from "config/roles"
|
||||
@@ -16,7 +16,6 @@ export = {
|
||||
await interaction.deferReply({ ephemeral: true })
|
||||
const user = interaction.member as GuildMember
|
||||
const guild = interaction.guild!
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
const userRoles = user.roles.cache.map(role => role.id)
|
||||
const guildQuestions = questions.guild
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ButtonBuilder, ActionRowBuilder, ButtonStyle, EmbedBuilder, GuildMember
|
||||
import { gm, manager, moderator, beast, member, guildStaff, guildRole } from "config/roles"
|
||||
import { ignM, smallM, largeM } from "config/limitmessages"
|
||||
import { inactivity } from "config/questions"
|
||||
import { color, inactivityLogChannel } from "config/options"
|
||||
import { embedColor, inactivityLogChannel } from "config/options"
|
||||
import { Button } from "interfaces"
|
||||
import { getIGN } from "utils/Hypixel"
|
||||
const guildRoles = [gm, manager, moderator, beast, member, guildStaff, guildRole]
|
||||
@@ -14,7 +14,6 @@ export = {
|
||||
async execute(interaction) {
|
||||
const guild = interaction.guild!
|
||||
const user = interaction.member as GuildMember
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
const userRoles = user.roles.cache
|
||||
|
||||
if (!userRoles.some(role => guildRoles.includes(role.id))) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { color } from "config/options"
|
||||
import { embedColor } from "config/options"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import { Button } from "interfaces"
|
||||
|
||||
@@ -12,8 +12,6 @@ export = {
|
||||
|
||||
const user = interaction.user
|
||||
const guild = interaction.guild!
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
const message = interaction.message
|
||||
const embed = message.embeds[0]
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { ButtonBuilder, ButtonStyle, ActionRowBuilder, EmbedBuilder, GuildMember, TextChannel } from "discord.js"
|
||||
import { color, staffApplicationsChannel } from "config/options"
|
||||
import { embedColor, staffApplicationsChannel } from "config/options"
|
||||
import { largeM, ignM } from "config/limitmessages"
|
||||
import questions from "config/questions"
|
||||
import { guildRole, guildStaff } from "config/roles"
|
||||
@@ -17,7 +17,6 @@ export = {
|
||||
async execute(interaction) {
|
||||
const user = interaction.member as GuildMember
|
||||
const guild = interaction.guild!
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
const userRoles = user.roles.cache
|
||||
const setting = await settings.findOne({ name: "staffAppStatus" })
|
||||
const status = setting!.value || "0"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, Message, GuildMember } from "discord.js"
|
||||
import { color } from "config/options"
|
||||
import { embedColor } from "config/options"
|
||||
import guildapp from "schemas/guildAppSchema"
|
||||
import { Modal } from "interfaces"
|
||||
|
||||
@@ -14,9 +14,7 @@ export = {
|
||||
const message = interaction.message as Message
|
||||
const embed = message.embeds[0]
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
const reason = interaction.fields.fields.get("denyreason")!.value || "No reason provided"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
await message.edit({
|
||||
components: [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle } from "discord.js"
|
||||
import { color } from "config/options"
|
||||
import { embedColor } from "config/options"
|
||||
import staffapp from "schemas/staffAppSchema"
|
||||
import { Modal } from "interfaces"
|
||||
|
||||
@@ -12,8 +12,6 @@ export = {
|
||||
|
||||
const guild = interaction.guild
|
||||
const reason = interaction.fields.fields.get("staffdenyreason")!.value || "No reason provided"
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
const message = interaction.message!
|
||||
const embed = message.embeds[0]
|
||||
const applicantId = embed.footer!.text.split(" ")[1]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { getUUID, getPlayer, getGuild, getHeadURL } from "utils/Hypixel"
|
||||
import { color, hypixelGuildID, devMessage } from "config/options"
|
||||
import { embedColor, hypixelGuildID, devMessage } from "config/options"
|
||||
import verify from "schemas/verifySchema"
|
||||
import mongoose from "mongoose"
|
||||
import { gm, manager, moderator, beast, elite, member, guildRole, guildStaff, defaultMember } from "config/roles"
|
||||
@@ -15,8 +15,6 @@ export = {
|
||||
|
||||
const user = interaction.member as GuildMember
|
||||
const ign = interaction.fields.fields.get("verifyign")!.value
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
const verifyData = await verify.findOne({ userID: user.user.id })
|
||||
if (verifyData) {
|
||||
interaction.editReply("You are already verified.\n" + "Try running /update to update your roles.")
|
||||
|
||||
Reference in New Issue
Block a user