Getting ChannelType from APIInteractionDataResovledChannel
I'm currently trying to work with chat input commands. And when I create an channel option and use
.getChannel()
to retrieve it. The return type has APIInteractionDataResolvedChannel
which can't be used with methods such as isTextBasedChannel()
is there something I am doing wrong? I've checked the documetnation and APIInteractionDataResolvedChannel
is not in the ChanelTypes
typedef.7 Replies
for
isTextBasedChannel()
And
getChannel()
definitely reurns thisgetChannel is for HTTP bots
Not for discordjs
Solution
You should use the discordjs methods to resolve slash commands parameters
Oh it turns out I am