mirror of
https://github.com/discordjs/discord.js.git
synced 2024-07-08 01:41:18 +12:00
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:
parent
a35d760421
commit
27d0659a45
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue