fix: error
This commit is contained in:
parent
dce1e072da
commit
f2e6a8b1b1
1 changed files with 3 additions and 4 deletions
|
@ -6,6 +6,9 @@ export default class extends Command {
|
|||
super('삭제')
|
||||
}
|
||||
public async execute(msg: Message, args: string[]) {
|
||||
if (!args[0]) {
|
||||
return await msg.channel.send('```멒힌아 삭제 (지울 단어)```')
|
||||
}
|
||||
const db = await msg.client.chatBot.db.getConnection()
|
||||
const command = args[0]
|
||||
const [rows] = await db.execute<LearnData[]>(
|
||||
|
@ -13,10 +16,6 @@ export default class extends Command {
|
|||
[command],
|
||||
)
|
||||
|
||||
if (!command) {
|
||||
return msg.channel.send('```멒힌아 삭제 (지울 단어)```')
|
||||
}
|
||||
|
||||
if (!rows[0]) {
|
||||
return await msg.channel.send('해당하는 걸 찾ㅈ을 수 없어요.')
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue