From c5ef900b3851b651865c75ade46541763e95629c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Sat, 30 Jul 2022 19:23:38 -0300 Subject: [PATCH] Update CategoryChannel: add session & readonly --- packages/core/src/structures/channels.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/core/src/structures/channels.ts b/packages/core/src/structures/channels.ts index bbc365e..49e0913 100644 --- a/packages/core/src/structures/channels.ts +++ b/packages/core/src/structures/channels.ts @@ -114,6 +114,7 @@ export class CategoryChannel extends BaseChannel { constructor(session: Session, data: DiscordChannel) { super(session, data); this.id = data.id; + this.session = session; this.name = data.name ? data.name : ''; this.nsfw = data.nsfw ? data.nsfw : false; this.guildId = data.guild_id ? data.guild_id : undefined; @@ -126,7 +127,8 @@ export class CategoryChannel extends BaseChannel { : []; } - id: Snowflake; + readonly id: Snowflake; + readonly session: Session; parentId?: string; name: string; permissionOverwrites: PermissionsOverwrites[];