Did Discord change something about roles?

Hello! My bot was working find up until about a week ago, when any feature involving roles suddenly stopped working well. Did Discord change something?
2 Replies
d.js docs
d.js docs3y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
Spiralio
SpiralioOP3y ago
I'm getting this error
DiscordAPIError: Unknown Member
at RequestHandler.execute (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async GuildMemberRoleManager.add (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:124:7)
DiscordAPIError: Unknown Member
at RequestHandler.execute (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/rest/RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/rest/RequestHandler.js:51:14)
at async GuildMemberRoleManager.add (/var/www/html/discord/BOT NAME/node_modules/discord.js/src/managers/GuildMemberRoleManager.js:124:7)
the problem is that the member is in the server, and this feature was working a week ago is there a chance that I need to run a fetch command or something to load the member in cache?
Want results from more Discord servers?
Add your server