mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01: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:
@@ -300,7 +300,7 @@ class ThreadChannel extends BaseChannel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Remove that catch in the next major version
|
// 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) {
|
if (error instanceof DiscordAPIError && error.code === RESTJSONErrorCodes.UnknownMember) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user