fix: Add await

This commit is contained in:
Siwoo Jeon 2024-10-04 14:35:23 +09:00
parent d4984c2df3
commit cc3c627683
Signed by: migan
GPG key ID: 036E9A8C5E8E48DA
3 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "muffinbot", "name": "muffinbot",
"version": "4.0.0-pudding.d241001b", "version": "4.0.0-pudding.d241004a",
"main": "dist/index.js", "main": "dist/index.js",
"private": true, "private": true,
"dependencies": { "dependencies": {

View file

@ -23,7 +23,7 @@ container.version = version
container.database = new PrismaClient() container.database = new PrismaClient()
container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트'] container.dokdoAliases = ['dokdo', 'dok', 'Dokdo', 'Dok', '테스트']
container.chatBot = new ChatBot(container.database) container.chatBot = new ChatBot(container.database)
container.lastUpdated = new Date('2024-10-01') container.lastUpdated = new Date('2024-10-04')
if (release.startsWith('e')) { if (release.startsWith('e')) {
container.channel = 'EXPERIMENTAL' container.channel = 'EXPERIMENTAL'

View file

@ -37,7 +37,7 @@ class LearnCommand extends Command {
} }
private async _run(ctx: Message | ChatInputCommandInteraction, args?: Args) { 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 if (typeof this.detailedDescription === 'string') return
const config = this.container.config const config = this.container.config