Updated types for channels
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { ExtendedClient as Client } from "../Client"
|
||||
import { errorLogChannel, color } from "../../../config/options.json"
|
||||
import { Modal } from "../../interfaces"
|
||||
import { Events, GuildTextBasedChannel } from "discord.js"
|
||||
import { Events, TextChannel } from "discord.js"
|
||||
import path = require("path")
|
||||
import fs = require("fs")
|
||||
type FileType = "js" | "ts"
|
||||
@@ -44,7 +44,7 @@ export default function loadModalEvents(client: Client, ft: FileType) {
|
||||
if (process.env.NODE_ENV !== "dev") {
|
||||
const channel = client.channels.cache.get(
|
||||
errorLogChannel,
|
||||
) as GuildTextBasedChannel
|
||||
) as TextChannel
|
||||
if (!channel) {
|
||||
console.log("No error log channel found.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user