From cc3c627683ca87e9ae388f2d5684a149be512c93 Mon Sep 17 00:00:00 2001 From: Siwoo Jeon Date: Fri, 4 Oct 2024 14:35:23 +0900 Subject: [PATCH] fix: Add await --- package.json | 2 +- src/Client.ts | 2 +- src/Commands/learn.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 0851eea..5ead1fa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "muffinbot", - "version": "4.0.0-pudding.d241001b", + "version": "4.0.0-pudding.d241004a", "main": "dist/index.js", "private": true, "dependencies": { diff --git a/src/Client.ts b/src/Client.ts index 745c8fc..aae946b 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -23,7 +23,7 @@ container.version = version container.database = new PrismaClient() container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트'] container.chatBot = new ChatBot(container.database) -container.lastUpdated = new Date('2024-10-01') +container.lastUpdated = new Date('2024-10-04') if (release.startsWith('e')) { container.channel = 'EXPERIMENTAL' diff --git a/src/Commands/learn.ts b/src/Commands/learn.ts index 2e2bc69..467bcc2 100644 --- a/src/Commands/learn.ts +++ b/src/Commands/learn.ts @@ -37,7 +37,7 @@ class LearnCommand extends Command { } private async _run(ctx: Message | ChatInputCommandInteraction, args?: Args) { - if (ctx instanceof ChatInputCommandInteraction) ctx.deferReply() + if (ctx instanceof ChatInputCommandInteraction) await ctx.deferReply() if (typeof this.detailedDescription === 'string') return const config = this.container.config