forum post reaction + join

hello i am trying to make it so my bot will automatically join new forum posts in the server. my code can be found below:
if (message.author.bot) return;
console.log('message recieved')
if (message.channel instanceof ForumChannel) {
console.log('pass the forum check')
if (message.author.bot) return;
console.log('message recieved')
if (message.channel instanceof ForumChannel) {
console.log('pass the forum check')
it is printing my message recieved to the console, however it is failing to print the pass the forum check to the console. i recieve no errors, yet it doesnt join nor react nor print that confirmation message.
2 Replies
d.js toolkit
d.js toolkit3mo ago
- What's your exact discord.js npm list discord.js and node node -v version? - Not a discord.js issue? Check out #other-js-ts. - Consider reading #how-to-get-help to improve your question! - Explain what exactly your issue is. - Post the full error stack trace, not just the top part! - Show your code! - Issue solved? Press the button! - Marked as resolved by OP
koholaz
koholazOP3mo ago
im on the lasest version of djs and my node version is 21.6.2 disregard, i figured it out
Want results from more Discord servers?
Add your server