Skip to content

Add embed parameter for webhooks in SendMessageAsync - #2893

Open
akaJuliaan wants to merge 2 commits into
discord-net:devfrom
akaJuliaan:dev
Open

Add embed parameter for webhooks in SendMessageAsync#2893
akaJuliaan wants to merge 2 commits into
discord-net:devfrom
akaJuliaan:dev

Conversation

@akaJuliaan

Copy link
Copy Markdown
Contributor

Description

This PR adds a embed parameter to the SendMessageAsync method for Webhooks, like it is already in the SendMessageAsync method for Channels.

Changes

  • Add embed parameter
  • Update Webhook sample

@akaJuliaan

Copy link
Copy Markdown
Contributor Author

The build for the samples logically fails because the new parameter does not yet exist in version 3.13.1 which they are referring to.

@SylveonDeko

Copy link
Copy Markdown
Contributor

Embed parameter is not needed as you can pass a single embed in an embed array into the embeds parameter. Yes it's inconvenient but redundant parameters aren't useful

@akaJuliaan

Copy link
Copy Markdown
Contributor Author

If redundant parameters are unwanted, why is there the exactly same embed parameter for the channels?

@SylveonDeko

SylveonDeko commented Mar 28, 2024 via email

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants