mirror of
https://github.com/danbulant/discord.js
synced 2026-05-27 22:11:53 +00:00
GuildChannel#setParent should allow channel to be a Snowflake (#2644)
This commit is contained in:
parent
7968442dbf
commit
8ac664801c
1 changed files with 1 additions and 1 deletions
|
|
@ -391,7 +391,7 @@ class GuildChannel extends Channel {
|
|||
*/
|
||||
setParent(channel, { lockPermissions = true, reason } = {}) {
|
||||
return this.edit({
|
||||
parentID: channel !== null ? channel.id ? channel.id : channel : null,
|
||||
parentID: channel !== null ? channel.hasOwnProperty('id') ? channel.id : channel : null,
|
||||
lockPermissions,
|
||||
}, reason);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue