From 7d92892c9fc37d0fbf197c7b63747c1f45185516 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Serna?= Date: Thu, 7 Jul 2022 23:35:40 -0300 Subject: [PATCH] Update GuildChannel: method getArchivedThreads --- structures/channels.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/structures/channels.ts b/structures/channels.ts index 76aa920..325f9bc 100644 --- a/structures/channels.ts +++ b/structures/channels.ts @@ -14,7 +14,8 @@ import { DiscordWebhook, TargetTypes, DiscordInviteMetadata, -DiscordThreadMember +DiscordThreadMember, +DiscordListArchivedThreads } from "../vendor/external.ts"; /** Functions and others */ @@ -334,9 +335,8 @@ export class GuildChannel extends BaseChannel implements Model { return invites.map((invite) => new Invite(this.session, invite)); } - /* - async getArchivedThreads(options: ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) { - let func: (channelId: Snowflake, options: ListArchivedThreads) => string; + async getArchivedThreads(options: Routes.ListArchivedThreads & { type: "public" | "private" | "privateJoinedThreads" }) { + let func: (channelId: Snowflake, options: Routes.ListArchivedThreads) => string; switch (options.type) { case "public": @@ -381,7 +381,7 @@ export class GuildChannel extends BaseChannel implements Model { ); return new ThreadChannel(this.session, thread, thread.guild_id ?? this.guildId); - }*/ + } } /** BaseVoiceChannel */