Files
ArvaldDos-Bot/guards.ts
2024-07-22 09:19:12 +00:00

8 lines
214 B
TypeScript

import type { TextChannel } from "discord.js";
import { ChannelType } from "discord.js";
export function is_text_channel(channel: any): channel is TextChannel {
return channel.type === ChannelType.GuildText;
}