zappyzep/backend/src/utils/isGuildChannel.ts

6 lines
175 B
TypeScript
Raw Normal View History

import { Channel, GuildChannel } from "discord.js";
export function isGuildChannel(channel: Channel): channel is GuildChannel {
return channel.type.startsWith("GUILD_");
}