8 lines
214 B
TypeScript
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;
|
|
}
|
|
|