I have an app that sends messages to a database if they are in the pre-approved channel. I'm using the code below. This works fine when the message comes from a regular channel, but not a forum channel. Should
channel.id
channel.id
be something else for forum channels?
if (allowedChannels.some(channel => channel.channel_id === message.channel.id))
if (allowedChannels.some(channel => channel.channel_id === message.channel.id))