#i dont understand what you want

1 messages ยท Page 1 of 1 (latest)

meager dirge
#

I have this command

restive chasm
#

yeah

meager dirge
#

The steps you can see will be added with editReply

#

it begins with the first and so on

#

i am using the interaction.editReply

restive chasm
#

yeah

meager dirge
#

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

restive chasm
#

use return after last editReply

#

maybe that will work

drowsy flax
#

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

meager dirge
meager dirge
#

But thanks for the idea

drowsy flax
#

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 ? =

meager dirge
#

The new one gets edited once here interaction.editReply(loading + "Dateien werden heruntergeladen");

drowsy flax
#

and what does the first message got edit to ?

drowsy flax
# meager dirge

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

meager dirge
meager dirge
drowsy flax
#

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

meager dirge
#

No worries, the red X is never edited

drowsy flax
#

yep i saw that right now that you reply with that "loading" emoji not with the red x

drowsy flax
meager dirge
#

Oh yeah Im sorry, should have gotten rid of all the old interactions

drowsy flax
#

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 ?

meager dirge
#

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?!

drowsy flax
#

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 )

meager dirge
#

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

drowsy flax
#

is your bot running twice maybe? xD

meager dirge
#

Haha was my idea too, but no xD

#

sadly await also didn't solve it ๐Ÿ˜ฆ

drowsy flax
#

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

meager dirge
#

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

drowsy flax
#

wut how is this even possible that makes no sense for me ๐Ÿ˜‚ im really confused

meager dirge
#

yep exactly

drowsy flax
#

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

meager dirge
#

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