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)),