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