Create & Deleting multiple embeds
I have a case where I need to fetch multiple (specific) messages by id, and move them from one channel to another (they're all embeds). What's the best way to do this? From what I read you can't move a message from one channel to another, you have to delete and create a new message. Also I guess there's a limited to how many messages can be sent and deleted on one go.
7 Replies
• 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.The limit is handled by us
But yes, you’d have to repost it
Is there a way to get multiple messages by id? Reading the docs and it doesn't seem like it, but maybe I'm missing something. Basically something like channel.messages.fetch([<id>, <id>, <id>, etc])
or will I need to do individual fetches for each message?
Yup
Latter
I guess you can do a range
If you know that after a certain message, you want all of them
You can use the after option
Will I hit some kind of limit/blocker just looping through an array? Like let's say I have 100+ messages I need to fetch.
Probably
But we handle that anyway
It might just take a bit of time
alright, thanks.