Updated Illegitimate class and files using it

This commit is contained in:
2024-01-26 09:55:00 +01:00
parent 38581e5e04
commit b56bb391a4
5 changed files with 7 additions and 10 deletions

View File

@@ -49,4 +49,4 @@ class Bot {
}
}
export default { Bot, client, redis }
export { Bot, client, redis }

View File

@@ -8,7 +8,7 @@ import {
devLogChannel
} from "config/options.json"
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
import Illegitimate from "utils/Illegitimate"
import { client } from "utils/Illegitimate"
const channels = {
online: onlineLogChannel,
@@ -22,7 +22,7 @@ const channels = {
type Channel = keyof typeof channels
export default async function logToChannel(channel: Channel, message: MessageCreateOptions): Promise<void | null> {
const guild = Illegitimate.client.guilds.cache.get(guildid) as Guild
const guild = client.guilds.cache.get(guildid) as Guild
let logChannel: TextChannel
if (process.env.NODE_ENV === "dev") {