fix: Can't delete the not exist data.
This commit is contained in:
parent
115823f3a5
commit
ed782a7b96
1 changed files with 3 additions and 3 deletions
|
@ -35,13 +35,13 @@ class DeleteLearnCommand extends Command {
|
||||||
)
|
)
|
||||||
|
|
||||||
if (!command) {
|
if (!command) {
|
||||||
return await msg.channel.send(
|
return await msg.reply(
|
||||||
`사용법: \n\`\`\`${(this.detailedDescription as DetailedDescriptionCommandObject).usage}\`\`\``,
|
`사용법: \n\`\`\`${(this.detailedDescription as DetailedDescriptionCommandObject).usage}\`\`\``,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!deleteDatas) {
|
if (deleteDatas.length === 0) {
|
||||||
return await msg.channel.send('해당하는 걸 찾ㅈ을 수 없어요.')
|
return await msg.reply('해당하는 걸 찾ㅈ을 수 없어요.')
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let i = 1; i <= deleteDatas.length; i++) {
|
for (let i = 1; i <= deleteDatas.length; i++) {
|
||||||
|
|
Loading…
Reference in a new issue