mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 00:23:30 +01:00
fix(GuildChannel): don't force parentID/permissionOverwrites to empty on create (#5823)
This commit is contained in:
committed by
GitHub
parent
99ff715137
commit
c5859337b6
@@ -36,8 +36,8 @@ class GuildChannel extends Channel {
|
||||
*/
|
||||
this.guild = guild;
|
||||
|
||||
this.parentID = null;
|
||||
this.permissionOverwrites = new Collection();
|
||||
this.parentID = this.parentID ?? null;
|
||||
this.permissionOverwrites = this.permissionOverwrites ?? new Collection();
|
||||
}
|
||||
|
||||
_patch(data) {
|
||||
|
||||
Reference in New Issue
Block a user