fix(ThreadChannel): invalid owner fetch option (#10292)

fix(ThreadChannel): invalid owner fetch options

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
ducktrshessami 2024-05-24 04:06:27 -07:00 committed by GitHub
parent a35d760421
commit 27d0659a45
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -300,7 +300,7 @@ class ThreadChannel extends BaseChannel {
}
// TODO: Remove that catch in the next major version
const member = await this.members._fetchSingle({ ...options, user: this.ownerId }).catch(error => {
const member = await this.members._fetchSingle({ ...options, member: this.ownerId }).catch(error => {
if (error instanceof DiscordAPIError && error.code === RESTJSONErrorCodes.UnknownMember) {
return null;
}