I've a Discord bot where I'm checking if a channel is a text channel. The following code worked until today, but now it throws an error.
if (message.channel.isText()) { ... }
Error:
if (message.channel.isText())
^
TypeError: message.channel.isText is not a function
I also tried it with message.channel.type === 'GUILD_TEXT'
but it always returns false
, even if the channel is a text channel.
Comments
Post a Comment