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

Co-authored-by: Noel <buechler.noel@outlook.com>
This commit is contained in:
PanSzelescik
2021-07-05 13:53:40 +01:00
committed by GitHub
parent 31d31293d3
commit 28c57246d1
5 changed files with 8 additions and 2 deletions

View File

@@ -697,7 +697,7 @@ class Message extends Base {
data = MessagePayload.create(this, options, {
reply: {
messageReference: this,
failIfNotExists: options?.failIfNotExists ?? true,
failIfNotExists: options?.failIfNotExists ?? this.client.options.failIfNotExists,
},
});
}