Skip to content

isTextChannelInstance

function isTextChannelInstance(channel): channel is GuildTextBasedChannel;

Check if the value is a Discord.js guild text based channel.

any

The value to check

channel is GuildTextBasedChannel

true when the value looks like a guild text based channel