From 7f847621769b3f35b1329dc36b2d1a8d1bda0b53 Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:37 +0200 Subject: [PATCH] Update get_channels.ts --- src/helpers/channels/get_channels.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/channels/get_channels.ts b/src/helpers/channels/get_channels.ts index df7543b7e..c0271fb41 100644 --- a/src/helpers/channels/get_channels.ts +++ b/src/helpers/channels/get_channels.ts @@ -1,7 +1,7 @@ import { cacheHandlers } from "../../cache.ts"; import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; -import { DiscordChannel } from "../../types/channels/channel.ts"; +import { Channel } from "../../types/channels/channel.ts"; import { Collection } from "../../util/collection.ts"; import { endpoints } from "../../util/constants.ts"; @@ -10,10 +10,10 @@ import { endpoints } from "../../util/constants.ts"; * ⚠️ **If you need this, you are probably doing something wrong. This is not intended for use. Your channels will be cached in your guild.** */ export async function getChannels(guildId: string, addToCache = true) { - const result = (await rest.runMethod( + const result = await rest.runMethod( "get", endpoints.GUILD_CHANNELS(guildId), - )) as DiscordChannel[]; + ); return new Collection( (