From 3812025506df85dfdd67c5e6522598adda17374b Mon Sep 17 00:00:00 2001 From: ITOH <72305210+itohatweb@users.noreply.github.com> Date: Fri, 23 Apr 2021 23:27:39 +0200 Subject: [PATCH] Update get_pins.ts --- src/helpers/channels/get_pins.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/helpers/channels/get_pins.ts b/src/helpers/channels/get_pins.ts index c09237216..18b878b03 100644 --- a/src/helpers/channels/get_pins.ts +++ b/src/helpers/channels/get_pins.ts @@ -1,14 +1,14 @@ import { rest } from "../../rest/rest.ts"; import { structures } from "../../structures/mod.ts"; -import { DiscordMessage } from "../../types/messages/message.ts"; +import { Message } from "../../types/messages/message.ts"; import { endpoints } from "../../util/constants.ts"; /** Get pinned messages in this channel. */ export async function getPins(channelId: string) { - const result = (await rest.runMethod( + const result = await rest.runMethod( "get", endpoints.CHANNEL_PINS(channelId), - )) as DiscordMessage[]; + ); return Promise.all( result.map((res) => structures.createDiscordenoMessage(res)),