Updated types for channels
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { ChatInputCommandInteraction, GuildTextBasedChannel, channelMention } from "discord.js"
|
||||
import { ChatInputCommandInteraction, TextChannel, channelMention } from "discord.js"
|
||||
import settingsSchema from "../../schemas/settingsSchema"
|
||||
import { color, devMessage } from "../../../config/options.json"
|
||||
import mongoose from "mongoose"
|
||||
@@ -6,7 +6,7 @@ import mongoose from "mongoose"
|
||||
export default async function setup(interaction: ChatInputCommandInteraction): Promise<void> {
|
||||
await interaction.deferReply()
|
||||
|
||||
const channel = interaction.options.getChannel("channel") as GuildTextBasedChannel
|
||||
const channel = interaction.options.getChannel("channel") as TextChannel
|
||||
const embedColor = Number(color.replace("#", "0x"))
|
||||
|
||||
if (await settingsSchema.findOne({ name: "counting" })) {
|
||||
|
||||
Reference in New Issue
Block a user