#i dont understand what you want
1 messages ยท Page 1 of 1 (latest)
yeah
The steps you can see will be added with editReply
it begins with the first and so on
i am using the interaction.editReply
yeah
now when I use the same command after this one is finished
it goes back to this message and edits it from the beginning, but i use the other interaction object
can you show maybe the code ( sorry i have to to leave i do it ^^ dont want to interrupt you guys ) but its not possible because every interaction have it owns webhook token
too long for message
Tried it with returns but didn't work
But thanks for the idea
and if you use two times the same slash command the new dont get a response at all or it doesnt edit ( and the other message from the first slash exeucte gets edited ? =
The new one gets edited once here interaction.editReply(loading + "Dateien werden heruntergeladen");
and what does the first message got edit to ?
does the other message before edit or only the new one get once edited ? because at the bottom of your code is also the message interaction.editReply(":x:" + "Dateien werden heruntergeladen"); in the else statement if not Object.keys(result.errors).length === 0
As you hopefully can see, both messages get edited, but the previous interaction gets all edits
yeah i mean as i can see that if there is an error from the result ( download result ) you are sending only a message
} else {
interaction.editReply("โ" + "Dateien werden heruntergeladen");
}
but without logging the error
code line 17 and else statement 82
so if there is an error or Object.keys(result.errors).length === 0 is not "0" you are sending an simple reply that with that above
i think there is an download error that you are ignoring with your if/else statement and so the second thing only gets this first edit
oh no wait im stupid
No worries, the red X is never edited
yep i saw that right now that you reply with that "loading" emoji not with the red x
but why is your bot that often responding to your command ? or is that the old messages and its editing all ?
Oh yeah Im sorry, should have gotten rid of all the old interactions
so your bot works fine at the first command execute
all is editing and you got your files and so on
but if you use it twice the bot is only editing the first time ( with the loading emoji ) and after that its editing all old messages ?
Yes
I just realised something else
If you stop the video at about 5 seconds
there are the first two steps, and after that it starts from the beginning
I have no clue why
OH
not only the previous one, also the other ones are edited in the video?!
try and await every editReply() im very confused tbh because afaik its impossible that the bot edits message before if you are using editReply()
because of the interaction webhook ( token )
Yes, I got an interesting error now
After deleting all interaction messages and making a new slash command
at RequestHandler.execute (C:\Users\Fabian\Desktop\DiscordBot\Repos\BlackBotV13\node_modules\discord.js\src\rest\RequestHandler.js:350:13)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (C:\Users\Fabian\Desktop\DiscordBot\Repos\BlackBotV13\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async InteractionWebhook.editMessage (C:\Users\Fabian\Desktop\DiscordBot\Repos\BlackBotV13\node_modules\discord.js\src\structures\Webhook.js:326:15)
at async CommandInteraction.editReply (C:\Users\Fabian\Desktop\DiscordBot\Repos\BlackBotV13\node_modules\discord.js\src\structures\interfaces\InteractionResponses.js:143:21) {
method: 'patch',
path: '/webhooks/874631288991141938/aW50ZXJhY3Rpb246OTkxMDU5OTM0NjEzNDcxMzczOjRoMzR3UFpuNHJGd3hlcWNFMnBmamxxbE83QTRWT2RMQWc1NTZyR0ljTkVBbVZVdVozM2xJZVRVWWk3Z2pk username: undefined,
avatar_url: undefined,
allowed_mentions: undefined,
flags: undefined,
message_reference: undefined,
attachments: undefined,
sticker_ids: undefined
},
files: []
}
}
even though there was this message, but ill try to await all
is your bot running twice maybe? xD
maybe try and debug things also console.log(interaction.id) or something in different places to see where it stops and what interaction it is
Okay
I made another founding
It does edit EVERY interaction message before, except the one being executed right now
in programming discord bots for more then a year now, this is the most random thing happened to me
wut how is this even possible that makes no sense for me ๐ im really confused
yep exactly
yep never heard that and i dont really see a error in your code that would do this
if that doesnt help maybe post your message with code ( maybe a pastbin ) in the help channel again sorry i cant help you because im self confused af from your error
Thank you very much for your help!!
First interaction: at the beginning interaction id 1, after client.connect also 1 (with 1 i mean the interaction id of the first interaction)
Second interaction: at the beginning interaction id 2, after client.connect 1 and then 2. So something here is already wrong