not-ilinked / Anarchy

The superior Discord API wrapper
https://anarchyteam.dev
207 stars 45 forks source link

How to send multiple embeds in a single message? #3354

Open sezonis opened 1 year ago

sezonis commented 1 year ago

So as far as I'm aware, discord webhook (and possibly bots?) can send multiple embeds in one go to create multi image album. I am trying to re-create something similar, but cannot seem to find any parameters that accepts a list of embeds? Am I missing something here or is it not implemented in Anarchy?

verticalsync commented 1 year ago

So as far as I'm aware, discord webhook (and possibly bots?) can send multiple embeds in one go to create multi image album. I am trying to re-create something similar, but cannot seem to find any parameters that accepts a list of embeds? Am I missing something here or is it not implemented in Anarchy?

If I'm not wrong, you can do up to 10 embeds in both a webhook and a bot but might be mistaken, but as far as I know, this isn't supported in Anarchy.

sezonis commented 1 year ago

I see.

Well, I decided to add support for multiple embeds. Currently testing it. Will make a PR eventually after it's all tested. Not really sure if there's a difference in using just the single "embed" field vs "embeds". Unless I'm missing something, they both should be identical to each other yea?

Since in the code when retrieving messages it's a private field that gets the "embeds" field regardless. Not really sure what the harm is in changing embed to embeds. Unless I am missing something here?

verticalsync commented 1 year ago

I see.

Well, I decided to add support for multiple embeds. Currently testing it. Will make a PR eventually after it's all tested. Not really sure if there's a difference in using just the single "embed" field vs "embeds". Unless I'm missing something, they both should be identical to each other yea?

Since in the code when retrieving messages it's a private field that gets the "embeds" field regardless. Not really sure what the harm is in changing embed to embeds. Unless I am missing something here?

I haven't really dove that deep into embeds or anything, but I guess keeping it how it would be like in discord normally would be better.