LunarRage | DNA
DIAdiscord.js - Imagine an app
•Created by LunarRage | DNA on 11/15/2023 in #djs-questions
Issue with Fetching User Details from Reactions in Discord.js
Hi!
I'm encountering a challenge with retrieving user details from message reactions. Below is a detailed breakdown of my setup and the problem:
1. Discord.js and Node Versions:
- Discord.js Version: 14.13.0
- Node Version: 18.18.0
2. Bot Configuration:
- My bot is configured with the following intents and partials:
3. Process Reactions Function:
- The
processReactions
function, which is supposed to fetch reactions and their user details, is defined as:
4. Fetch Reaction Users Function:
- The fetchReactionUsers
function is intended to retrieve users from a given reaction:
5. Issue Description:
- Despite this setup, I'm unable to access the user details of the reactions. I successfully get the reactions, but the user information is not being retrieved as expected.
6. Request for Assistance:
- I would greatly appreciate any insights or suggestions on resolving this issue.
Thank you for your help!16 replies
DIAdiscord.js - Imagine an app
•Created by LunarRage | DNA on 10/30/2023 in #djs-questions
🐛 Issue: Permission Error (50013) When Deleting a Role with Discord Bot
Description:
I am encountering a 50013 Permission error when my Discord bot tries to delete a role from a server. The role is confirmed to be below the bot's role in the hierarchy. The bot does have Admin permissions in the server.
Expected Behavior:
The role should be deleted without any permission errors.
Actual Behavior:
The bot throws a 50013 Permission error.
Code Snippets:
Role Removal Function:
Bot Initialization (Index File):
Any insights or solutions to this issue would be greatly appreciated.
10 replies
DIAdiscord.js - Imagine an app
•Created by LunarRage | DNA on 10/26/2023 in #djs-questions
private message
I have a strange issue occurring when trying to read messages in my Discord Bot DM. If I remove my Discord bot from my server and re-add it,I am able to start viewing the messages sent to the bot via dm.
If I disconnect my bot and restart it wont start receiving messages. If I remove the bot from a server and re-add it to a server it will start logging the private messages correctly. If I turn my server off and restart the bot will stop logging.
If I also remove it from a server the bot will stop logging. How do I resolve this and is this the expected behaviour?
Handler:
6 replies