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

feat(Message): add 'failIfNotExists' to ClientOptions #6038

Merged
merged 4 commits into from Jul 5, 2021

Conversation

PanSzelescik
Copy link
Contributor

Please describe the changes this PR makes and why it should be merged:

This PR adds failIfNotExists to ClientOptions. The reason why is: some devs may not want errors when the referenced message does not exist. Setting this option to false to every ReplyMessageOptions seems like a poor idea, easy to forget, so I added this option to ClientOptions.

Status and versioning classification:

  • Code changes have been tested against the Discord API, or there are no code changes
  • I know how to update typings and have done so, or typings don't need updating
  • This PR changes the library's interface (methods or parameters added)

@iCrawl
Copy link
Member

iCrawl commented Jul 5, 2021

This needs a rebase.

typings/index.d.ts Outdated Show resolved Hide resolved
Co-authored-by: Noel <buechler.noel@outlook.com>
@iCrawl iCrawl merged commit 28c5724 into discordjs:master Jul 5, 2021
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.

None yet

5 participants