Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document flags for editMessage #567

Merged
merged 8 commits into from Nov 23, 2019
Merged

Document flags for editMessage #567

merged 8 commits into from Nov 23, 2019

Conversation

Khaaz
Copy link
Contributor

@Khaaz Khaaz commented Nov 23, 2019

As documented in discord/discord-api-docs#1003 we can now pass flags in editMessage to set/unset SUPRESS_EMBED flags.
I simply documented this change since we can directly use content in the editMessage method to apply the flags to the message (content.flags).
The editMessage wasalso edited to allow passing only content.flags
This PR also updates typings

Note on editMessage:

  • you can now edit a message by only passing flags
  • editing a message without flags will let the current flags (as expected)
  • editing a message with only content.content will just edit the content of the embed without affecting the embed (as expected)
  • editing a message with only content.embed will just edit the embed without affecting the content (as expected)
  • editing the embed of a message with the SUPRESS_EMBED flag will actually edit the embed and suppress it. Unsetting SUPPRESS_EMBED will then just show the embed again.

Copy link
Owner

@abalabahaha abalabahaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice to add a link to the flags

@abalabahaha abalabahaha merged commit 1567f9d into abalabahaha:dev Nov 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants