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[];