Replies: 1 comment
-
Hi! I believe there shouldn't be any difference, and it should work if you place it in your index.js, since the My own bot is using this code calling "new ReactionRole" in the "ready" event, but last time I checked the E2E test in discordjs-reaction-role, it worked calling it directly from the main file as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey was looking through your readme over on https://www.npmjs.com/package/discordjs-reaction-role and I understand everything except when call the new ReactionRole. Would I do it in an
ready
event so if the bot ever restarts it runs it once its ready again or just in my main index.js file? ThanksBeta Was this translation helpful? Give feedback.
All reactions