Relative Content

Tag Archive for discorddiscord.js

Error thrown by discord snowtransfer: [ERROR] Error when sending Discord DM: TypeError: Cannot read properties of undefined (reading ‘id’)

I was using snowtransfer discord client for sending the messages to the users from my bot. It works well for the most part but while sending the dm to one of the users I got this error:
[ERROR] Error when sending Discord DM: TypeError: Cannot read properties of undefined (reading 'id')
This error broke the application while in production. I would like it so that this issue doesn’t happen in future and doesn’t break the bot. Has anyone here encountered this issue before? Since I am kinda unable to reproduce it at the moment.

Copy Discord Messages

Looking to copy from one server (not an admin), to my server (im the owner). I want it copied in real time, so if something is posted there, it displays in my discord. Any help?

Failed Deleted Image Uploads from bot

I have a discord bot that works on discord.js v13. It’s purpose is to upload deleted images/videos in a server to another server’s logging channel. It used to work perfectly fine until recently, it started failing uploads Image showing failed upload

Discord.js v14 Slash Commands Stop Responding After the First One is Ran

For starters I am still pretty new to coding and don’t have everything down perfectly yet. I was following along with the discord.js guide as well as a few YouTube videos. Everything was working well yesterday, but now slash commands stop responding after the first command is run. After starting the bot up, I can go run any command and it works, but after that none of the commands will respond (“The application did not respond”), but there are no error messages being sent to my terminal.

Discord bot joins the previous channel I have been(discord.js)

My discord bot joins the channel currently I’m being on using /vc join then I disconnect the bot using /vc disconnect and switch to another channel in the same guild(server). After then I use the /vc join again but the bot joins the previous channel I’ve been.

How to give user a role for certain time in discord.js?

so I’m making a little bot called “Prison”. All it does is adds a command /jail which takes two arguments, username and time(days). I want the user to get the jailed role whenever I run the command and it automatically gets removed after the time given. I’m fairly new to discord.js.