Updated all colorlog imports with color

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2024-01-30 11:57:50 +01:00
parent 27bff1a007
commit 3bee261453
8 changed files with 18 additions and 18 deletions

View File

@@ -2,7 +2,7 @@ import { ExtendedClient as Client } from "utils/Client"
import { embedColor } from "config/options"
import { Autocomplete } from "interfaces"
import { Events } from "discord.js"
import colorLog from "utils/functions/colors"
import color from "utils/functions/colors"
import path from "path"
import fs from "fs"
import logToChannel from "utils/functions/logtochannel"
@@ -20,7 +20,7 @@ export default function loadAutocompleteEvents(client: Client, ft: FileType) {
client.autocomplete.set(autocomplete.name, autocomplete)
} else {
console.log(
colorLog(
color(
`[WARNING] The autocomplete at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red"
)

View File

@@ -1,5 +1,5 @@
import { ExtendedClient as Client } from "utils/Client"
import colorLog from "utils/functions/colors"
import color from "utils/functions/colors"
import { embedColor } from "config/options"
import { Button } from "interfaces"
import { Events } from "discord.js"
@@ -20,7 +20,7 @@ export default function loadButtonEvents(client: Client, ft: FileType) {
client.buttons.set(btn.name, btn)
} else {
console.log(
colorLog(
color(
`[WARNING] The button at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red"
)

View File

@@ -1,5 +1,5 @@
import { ExtendedClient as Client } from "utils/Client"
import colorLog from "utils/functions/colors"
import color from "utils/functions/colors"
import { embedColor } from "config/options"
import { Command } from "interfaces"
import { Events } from "discord.js"
@@ -20,7 +20,7 @@ export default function loadSlashCommandsEvents(client: Client, ft: FileType) {
client.commands.set(cmd.data.name, cmd)
} else {
console.log(
colorLog(
color(
`[WARNING] The command at ${filePath} is missing a required "data", "execute" or "type" property.`,
"red"
)

View File

@@ -1,5 +1,5 @@
import { ExtendedClient as Client } from "utils/Client"
import colorLog from "utils/functions/colors"
import color from "utils/functions/colors"
import { ContextMenu } from "interfaces"
import { embedColor } from "config/options"
import { Events } from "discord.js"
@@ -20,7 +20,7 @@ export default function loadContextMenuEvents(client: Client, ft: FileType) {
client.contextmenus.set(cmd.data.name, cmd)
} else {
console.log(
colorLog(
color(
`[WARNING] The command at ${filePath} is missing a required "data", "execute" or "type" property.`,
"red"
)

View File

@@ -1,5 +1,5 @@
import { ExtendedClient as Client } from "utils/Client"
import colorLog from "utils/functions/colors"
import color from "utils/functions/colors"
import { embedColor } from "config/options"
import { Modal } from "interfaces"
import { Events } from "discord.js"
@@ -20,7 +20,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
client.modals.set(modal.name, modal)
} else {
console.log(
colorLog(
color(
`[WARNING] The modal at ${filePath} is missing a required "name", "execute" or "type" property.`,
"red"
)