fix: Add await
This commit is contained in:
parent
d4984c2df3
commit
cc3c627683
3 changed files with 3 additions and 3 deletions
|
@ -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": {
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue