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.
Discord gacha bot “error” (gacha not showing the card)
This is the gacha function i used:
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 do i make a discord.js command option string be .toLowerCase()
I used to have a line of code that would listen for a answer in a command option and it included .tolowerCase but now it doesnt work and just makes my bot crash here is the old code
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.
Discord.js “ValidationError: Expected a string primitive” when loading commands
I created another command like usual, but it shows the “ValidationError: Expected a string primitive” error and I’m not sure why.
This is the at file:///home/egganto/Documents/Athena/src/commands/perimeter.js:157:33
it’s referring to:
I’ve made this discord.js command for my bot which makes the bot go offline
The command makes the bot go offline, and before doing so, it sends an embed message saying it’s going offline, but I’m not to sure why it won’t work.