Process of format fixing

This commit is contained in:
2024-01-19 21:36:01 +01:00
parent ee217d5f64
commit 3eed20e788
77 changed files with 1079 additions and 1086 deletions

View File

@@ -5,7 +5,7 @@ import {
guildLogChannel,
errorLogChannel,
moderationLogChannel,
devLogChannel,
devLogChannel
} from "config/options.json"
import { Guild, MessageCreateOptions, TextChannel } from "discord.js"
import Illegitimate from "utils/Illegitimate"
@@ -16,14 +16,14 @@ const channels = {
guild: guildLogChannel,
error: errorLogChannel,
mod: moderationLogChannel,
dev: devLogChannel,
dev: devLogChannel
}
type Channel = keyof typeof channels
export default async function logToChannel(
channel: Channel,
message: MessageCreateOptions,
message: MessageCreateOptions
): Promise<void | null> {
const guild = Illegitimate.client.guilds.cache.get(guildid) as Guild
let logChannel: TextChannel
@@ -36,7 +36,7 @@ export default async function logToChannel(
if (!logChannel) {
console.log(
`[ERROR] Could not find channel used for ${channel} logging.`,
`[ERROR] Could not find channel used for ${channel} logging.`
)
return
}