Schlaumeyer
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 12/3/2023 in #djs-questions
Sometimes Unknown Interaction
Hey, I made a discordjs Bot that relies heavily on slash commands, sadly sometimes it gives out just unknown interaction and crashes the bot. In this example, as soon as the command is fired, it crashed. But there are multile files/commands like this. The interaction.deffer() is just experimental
13 replies
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 7/29/2023 in #djs-questions
Error when creating embed
I'm getting the following error when trying to create an embed. My main goal is to let the user enter the name, select an image and unix time to create an embed.
My code looks as follows:
I logged all the variables title, name, unix, image and color: the values seem to be ok
[29.07.2023 16:59.54.946] [LOG] 🔥 Neuer Fire Sale!
[29.07.2023 16:59.54.947] [LOG] testa
[29.07.2023 16:59.54.947] [LOG] 1690649796
[29.07.2023 16:59.54.948] [LOG] https://cdn.discordapp.com/ephemeral-attachments/1066036486497112075/1134862857813622804/7ify6m.jpg
[29.07.2023 16:59.54.948] [LOG] #e76604
6 replies
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 1/22/2023 in #djs-questions
TypeError: Cannot read properties of undefined (reading 'send')
That's my code in the index.js file:
https://hst.sh/xabavudika.js
I get the error in the title. I make this promise to wait for it in another file but I just tested it in the index.js
What can be the issue? The channel ID is correct.
13 replies
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 1/21/2023 in #djs-questions
Cannot read properties of undefined (reading 'send')
I'm awaiting the ready event from my bot to send a message. Sadly that doesn't work. Any ideas?
Error:
12 replies
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 1/15/2023 in #djs-questions
Get variable to other file
Hey, my code is the following:
index.js
myfile.js
The error I get
What am I doing wrong?
3 replies
DIAdiscord.js - Imagine an app
•Created by Schlaumeyer on 11/16/2022 in #djs-questions
Check if optional argument in commnd was provided
Hey, I have a command called /stats
It will provide the stats for the user who entered the command, the command also has a optional argument (user mention) with which the user can get the stats of another user.
How can I check if the argument is provided because now I just get an error when only the /stats command is entered
8 replies