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,10 +1,9 @@
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
import { countingBanned } from "config/roles"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
const member = interaction.options.getMember("user")! as GuildMember
const embedColor = Number(color.replace("#", "0x"))
if (member.roles.cache.has(countingBanned)) {
await interaction.reply({

View File

@@ -1,13 +1,12 @@
import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js"
import settingsSchema from "schemas/settingsSchema"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
import mongoose from "mongoose"
export default async function setup(interaction: ChatInputCommandInteraction): Promise<void> {
await interaction.deferReply()
const channel = interaction.options.getChannel("channel") as TextChannel
const embedColor = Number(color.replace("#", "0x"))
if (await settingsSchema.findOne({ name: "counting" })) {
await settingsSchema.findOneAndUpdate(

View File

@@ -1,10 +1,9 @@
import { ChatInputCommandInteraction, GuildMember, userMention } from "discord.js"
import { countingBanned } from "config/roles"
import { color, devMessage } from "config/options"
import { embedColor, devMessage } from "config/options"
export default async function ban(interaction: ChatInputCommandInteraction): Promise<void> {
const member = interaction.options.getMember("user")! as GuildMember
const embedColor = Number(color.replace("#", "0x"))
if (!member.roles.cache.has(countingBanned)) {
await interaction.reply({