Maxi130
DIAdiscord.js - Imagine an app
•Created by DanielBA on 10/28/2024 in #djs-questions
Bot Preformance - Sending the same message to many servers
As Qjuh already mentioned you could create a webhook in each server (using the bot). Each webhook has their own limits so you can send your messages faster. If you create them using your bot you can still use buttons and respond to them. You can also modify the picture and name of the webhook, so it looks almost identical.
9 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
So what interaction.message.delete() should do?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
I just don't understand why I'm able to keep interaction 1 "alive" by defering interaction 2.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
So I need to react to interaction 2 so the reply triggered by interaction 1 exists (which can then be deleted)?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
I'm responding within 3 seconds.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
Why do I need to defer an update for a new interaction tho?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
I thought the code in the first message was supposed to be for the first handler.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
Sorry, I thought it wasn't applicable for the example. I put the code in the wrong part. It works now.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
From my understanding I'm telling discord to reply, then to wait for an update and then tell them to update (delete) the message.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
I tried sending the message then deffering the update then deleting the interaction message. It gives me an Unknown Mesage error.
First message (cancel button)
Second message (no button)
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
How would I go about doing that with the second interaction object. interaction.message.delete() doesn't seem to work. (I might be using it incorrectly tho)
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
Do I need to have access to the first interaction object or is there a way to do it with only the second interaction object?
I have a command and button handler that runs a file based on the custom id
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
Isn't deleteReply() enough, if I use the original (first( Button Interaction)
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
The first button interaction object ("Cancel") or the second ("no")?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
From what I can see that is trying to delete the response to the slash command so the message with the title A. I’m trying to delete the confirmation message. (Message 2)
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
I don’t want to delete the public message, I want to delete the second (ephemeral) message asking to confirm the action.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 10/18/2024 in #djs-questions
How to delete reply of an interaction that caused my interaction after 3 seconds?
The community event is supposed to be a public message. The organizer should than be able to cancel it by using the cancel button. Then the organizer should be asked for confirmation. Turning the public communityevent response into a confirmation sadly doesn’t work.
31 replies
DIAdiscord.js - Imagine an app
•Created by Maxi130 on 1/15/2024 in #djs-questions
How do I get premium_type of a user or is there no way in discord.js?
Ah okay.
But it is documented? https://discord.com/developers/docs/resources/user#user-object-premium-types
5 replies