Lixeiro Charmoso
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 7/29/2024 in #djs-questions
How to get attachments from a message?
Hey, i'm recently having some issues with attachments. I want to get the attachment that an user uploaded and then resend in through the bot.
I have this code which used to work, but in the last months it stopped working
The log from console.log
5 replies
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 2/1/2024 in #djs-questions
Is possible to trigger an ephemeral message without setting "ephemeral: true"?
I'm having some strange behaviours from my bot recently and i'm not having idea what is happening. Right now an user sent me this screenshot: https://cdn.discordapp.com/attachments/821436197745197086/1202546935957946409/Screenshot_2024-02-01-10-31-34-07_572064f74bd5f9fa804b05334aa4f912.jpg In this screenshot that second message "To open a support ticket....." is a ephemeral message to him, right? BUT WHY?
Below is the snippet that generates this message, there is nothing about ephemeral. Also, if i try myself, i cannot reproduce this behavior (i've tried in many ways). The correct behavior is: when user choose something in this select menu, this message is deleted and after the deletion it shows the next message "Paste here the tbx ID.....".
13 replies
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 12/17/2023 in #djs-questions
How to create a button with permission
11 replies
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 5/16/2023 in #djs-questions
Import client variable in a SlashCommandBuilder function
Hello, i'm trying to use the client variable inside a command but its not accessible.
20 replies
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 3/29/2023 in #djs-questions
New error magically appeared xD
About to 40 minutes ago my bot crashed with a very uncommon error. Then tried to restart it and now it keeps crashing with same error. No changes in code were made, so my first thought is that discord updated something in his API.
Here is the error code
Anyone knows what could happened? The error is inside the node modules
52 replies
DIAdiscord.js - Imagine an app
•Created by Lixeiro Charmoso on 2/4/2023 in #djs-questions
Clean code without nesting on('collect'
I'm trying to get 5 sequential infos from the user but the only way to do that was nesting a lot of callbacks. Is there another way to do it without nesting and without using forms?
Example code:
17 replies