Skylife
DIAdiscord.js - Imagine an app
•Created by Skylife on 10/20/2024 in #djs-questions
value of autocomplete gets lost after switching to other channel and back
I have encountered an issue where the value of my autoselect gets lost in the execute method after i switch to another channel and then execute the command
Autocomplete code
result when i switch the channel while the command is in autocomplete mode
selectedDate: Sunday 20.10.2024 (this is basically my name: property)
result when i dont switch the channel which should be always my expected result
selectedDate: Mon Oct 21 2024 14:48:56 GMT+0200 (Mitteleuropäische Sommerzeit)
can someone help me here?
6 replies
DIAdiscord.js - Imagine an app
•Created by Skylife on 6/16/2024 in #djs-questions
pagination with button handler
Hello i want to refactor my current embed pagination. How do I update the embed in a separate button handler? A user starts a slashcommand where I create n embeds where n: n >= 1. the customId of the two buttons are in this format
RESERVATION-NEXT-' /*spotId*/
, RESERVATION-BACK-' /*spotId*/
,
In my button handler (interactionCreate.ts) i dont know how I access the embeds from my slashcommand which I have created to edit the current embed
9 replies
DIAdiscord.js - Imagine an app
•Created by Skylife on 5/26/2024 in #djs-questions
registration stepper/wizard
I want to make a registration stepper/wizard
how do i create this using Discord.js i want to have a init reply where a user need to accept the rules after he has clicked the yes button i want to follow up with a modal
16 replies
DIAdiscord.js - Imagine an app
•Created by Skylife on 2/22/2024 in #djs-questions
getting guild object
anyone knows how can I check if any kind of event happened and get the guild object?
my bot only works on guilds so direct messages can be ignored.
6 replies