#I am trying to make balance command with page, for coin history but embed doesn't update.

20 messages · Page 1 of 1 (latest)

tardy vessel
#

• What's your exact discord.js npm list discord.js and node node -v version?
• Post the full error stack trace, not just the top part!
• Show your code!
• Explain what exactly your issue is.
• Not a discord.js issue? Check out #useful-servers.

vital bolt
#

in your collector it doesn’t seem like you make any changes to the message before editing it and replying each time

#

did I miss something?

#

@tardy vessel

tardy vessel
#

in the embed before the .map i have .slice(p1, p2)

#
let p1 =  page*10
let p2 =  (page+1)*10```
vital bolt
#

I don’t see any update to your p1 or p2 though

#

just page

tardy vessel
#

ok i will try

noble niche
#

You haven't changed anything in here

tardy vessel
#

page++

#

page--

vital bolt
#

you should change the top half of your code to be a function that takes in page as a parameter and then call it on your cases

vital bolt
#

that way your page value will update each time

tardy vessel
#

make sens

vital bolt
#

you could even put the edit reply in the function

#

anyways this isn’t djs related this is standard JS so you should probably close this post but if you need help, there’s #869652447881207858 , #resources and you can also feel free to reach out to me via DM if you’d like