mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-11 00:53:31 +01:00
chore(deps): update deps and fix lint (#3833)
This commit is contained in:
@@ -375,6 +375,7 @@ class GuildChannel extends Channel {
|
||||
*/
|
||||
setParent(channel, { lockPermissions = true, reason } = {}) {
|
||||
return this.edit({
|
||||
// eslint-disable-next-line no-prototype-builtins
|
||||
parentID: channel !== null ? channel.hasOwnProperty('id') ? channel.id : channel : null,
|
||||
lockPermissions,
|
||||
}, reason);
|
||||
|
||||
Reference in New Issue
Block a user