import { GuildBasedChannel } from "discord.js"; import client from "../client"; export async function getGuildChannel(guildID: string, channelID: string): Promise { const guild = await client.guilds.fetch(guildID); if (!guild) return null; const channel = await guild.channels.fetch(channelID); return channel; }