Skip to content

Commit

Permalink
fix: fix some TS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Jul 15, 2024
1 parent ff385ca commit 8022e22
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structures/interfaces/messageInteraction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Message> {
const data = await this.creator.api.fetchInteractionMessage(
this.creator.options.applicationID,
this.interactionToken,
Expand Down Expand Up @@ -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<Message> {
if (this.expired) throw new Error('This interaction has expired');

const options = typeof content === 'string' ? { content } : content;
Expand Down

0 comments on commit 8022e22

Please sign in to comment.