From 482ccb56fe2cae7920bb3f1bfb0c387db7a95b20 Mon Sep 17 00:00:00 2001 From: pakkographic <41129374+pakkographic@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:33:49 +0200 Subject: [PATCH] Update GuildChannel.ts --- lib/structures/GuildChannel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/structures/GuildChannel.ts b/lib/structures/GuildChannel.ts index 0d73a63..d12b092 100644 --- a/lib/structures/GuildChannel.ts +++ b/lib/structures/GuildChannel.ts @@ -63,7 +63,7 @@ export class GuildChannel extends Base { this.archivedBy = data.archivedBy ?? null; this.archivedAt = data.archivedAt ? new Date(data.archivedAt) : null; this.visibility = data.visibility ?? "public"; - this.isPublic = this.visibility === "public" ? true : false; + this.isPublic = this.visibility === "public"; // this.messages = new TypedCollection(Message, client, client.params.collectionLimits?.messages); // this.threads = new TypedCollection(ForumThread, client, client.params.collectionLimits?.threads); // this.docs = new TypedCollection(Doc, client, client.params.collectionLimits?.docs); @@ -154,7 +154,7 @@ export class GuildChannel extends Base { return this.client.rest.channels.archiveChannel(this.id as string); } - /** Unarchive the channel */ + /** Restore the archived channel */ async restore(): Promise{ return this.client.rest.channels.restoreChannel(this.id as string); }