Fetch an array of message IDs at once
Is there some sort of way to fetch multiple messages by
Kind of like
I tried
And it reports 50, which is a lot more than two lol
I basically create an array full of message ids, and I want to fetch them to get their content, author id, and displayname
But just running
This is what I've got right now, which is works, but is undesirable as it's very slow (many times slower requesting 3 specific IDs vs
It just turns an array of pins, into an array of pins and whatever they're replying to
I've read MessageManager.fetch(), but I don't really see what I'm looking for
Despite it saying that it accepts an array of options, and individual options can be snowflakes
id in a single request?Kind of like
message.channel.messages.fetch([snowflake_one, snowflake_two])I tried
interaction.channel.messages.fetch([1124766378705027212,1124766519826587670]).then(_ => console.log(_.size))And it reports 50, which is a lot more than two lol
I basically create an array full of message ids, and I want to fetch them to get their content, author id, and displayname
But just running
messages.fetch(id) for each one is very slowThis is what I've got right now, which is works, but is undesirable as it's very slow (many times slower requesting 3 specific IDs vs
limit of 3)It just turns an array of pins, into an array of pins and whatever they're replying to
I've read MessageManager.fetch(), but I don't really see what I'm looking for
Despite it saying that it accepts an array of options, and individual options can be snowflakes
discord.js
discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.

