my guild related listeners arent firing but my client ones are
pretty much just the title
29 Replies
im having a lot of random issues
for some reason
all my packages are up to date
like everytime i run my bot it always says in the logs that it needs to updates the commands
except typescript though because i know you cant have that up to date
based on what u have included in the title, it sounds like ur missing intents for your guild events
i recommend looking at https://discord.com/developers/docs/events/gateway#list-of-intents to see which intents are required for each event
Discord Developer Portal
Discord Developer Portal — API Docs for Bots and Developers
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
well the event that isnt working is the messagereactionadd event
i have that intent enabled
could u clarify which intent is enabled?
i have these enabled
could u also show the messageReactionAdd listener?
your other listeners are working so that would suggest that your package.json main is correct
if u would like to see more logs and get a better idea what is going on, u could change your logger level from debug to trace
okay ill see
idk why it keeps saying its updating the command data when i havent changed anything
and that its found differences
that will be differences with what has been deployed to the discord api
but i have not changed anything in the commands
focusing back on the problem with your messageReactionAdd listener, have u managed to update your logger to log traces and see what is happening with listeners?
well its getting loaded and inserted
and nothing at all is happening when u add a reaction in a server that the bot is in? not even the logs show?
nothing happens
may i ask what your package.json main is set to?
./dist/index.js
this is what it looks like
could u try deleting the dist folder and trying with a fresh build?
yeah
same issue still applies
also for some reason it says it took 41 seconds to intialise
i just remembered that messageReactionAdd won't fire on uncached messages, unless u were to enable partials
have u tried sending a new message after the bot has started and reacting to that?
let me see
using partials fixed it
but im still concerned about the other issue
Seeing as this is a starboard you can pretty much just look at the code of @Gemboard https://github.com/sapphiredev/gemboard
GitHub
GitHub - sapphiredev/gemboard: A private starboard bot for the Sapp...
A private starboard bot for the Sapphire server. Contribute to sapphiredev/gemboard development by creating an account on GitHub.