From 8022e22efaaab300083539779b281c1d76d6a73d Mon Sep 17 00:00:00 2001 From: Snazzah Date: Mon, 15 Jul 2024 14:25:05 -0500 Subject: [PATCH] fix: fix some TS errors --- src/structures/interfaces/messageInteraction.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/structures/interfaces/messageInteraction.ts b/src/structures/interfaces/messageInteraction.ts index 248dcdc6..1fd7830e 100644 --- a/src/structures/interfaces/messageInteraction.ts +++ b/src/structures/interfaces/messageInteraction.ts @@ -35,7 +35,7 @@ export class MessageInteractionContext< * Fetches a message. * @param messageID The ID of the message, defaults to the original message */ - async fetch(messageID = '@original') { + async fetch(messageID = '@original'): Promise { const data = await this.creator.api.fetchInteractionMessage( this.creator.options.applicationID, this.interactionToken, @@ -130,7 +130,7 @@ export class MessageInteractionContext< * @param messageID The message's ID * @param content The content of the message */ - async edit(messageID: string, content: string | EditMessageOptions) { + async edit(messageID: string, content: string | EditMessageOptions): Promise { if (this.expired) throw new Error('This interaction has expired'); const options = typeof content === 'string' ? { content } : content;