From 5601e397c288f6d186801303c69ce121f62a0e2e Mon Sep 17 00:00:00 2001 From: kdh8219 <65698239+kdh8219@users.noreply.github.com> Date: Fri, 5 May 2023 15:11:05 +0900 Subject: [PATCH] Change silly deletion methods --- src/command/commands/del_nick_super.ts | 2 +- src/command/commands/del_user_super.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/command/commands/del_nick_super.ts b/src/command/commands/del_nick_super.ts index 1e5e062..8225afb 100755 --- a/src/command/commands/del_nick_super.ts +++ b/src/command/commands/del_nick_super.ts @@ -50,7 +50,7 @@ export default { .get(); if (!the_member.empty) { the_member.forEach((member) => { - members.doc(member.id).delete(); + member.ref.delete(); }); let discord_tag: string; diff --git a/src/command/commands/del_user_super.ts b/src/command/commands/del_user_super.ts index 382c724..689c4d6 100755 --- a/src/command/commands/del_user_super.ts +++ b/src/command/commands/del_user_super.ts @@ -30,7 +30,7 @@ export default { if (!should_remove.empty) { should_remove.forEach((item) => { - members.doc(item.id).delete(); + item.ref.delete(); }); let discord_tag;