Relative Content

Tag Archive for javascriptdiscorddiscord.js

Undefined JavaScript error with discord.js V14

I am working on a user context menu command to get the users info. One of the parts of it is getting their roles in the discord and adding a badge on the embed.. except it’s giving me the error ‘Cannot read properties of undefined (reading ‘cache’s

Discord.js: slash command not registering

I want to register a slash command using discord.js, I know it takes so long since I have already made some, but this time the bot have been online for 4 ~ 5 hours and still I can’t use the command even though I can see it in the interactions tab in settings.

DiscordAPI Missing Access when trying to remove members from a thread

I’m working on a feature for my bot that allows server moderators to remove all users from a given thread who have not sent a single message in that thread in the past 30 days. I have everything working so far, up to generating a list of ThreadMember objects representing the users I want to kick. However, when I call the remove() function on these objects, I’m met with: