From 6d170f3555cbe38e83dc4c05d5acfe03088edbee Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Fri, 2 Dec 2022 12:03:51 +0700 Subject: [PATCH] fix: `friendNicknames` cache missing --- src/structures/ClientUser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structures/ClientUser.js b/src/structures/ClientUser.js index c83bdea..39e2e7e 100644 --- a/src/structures/ClientUser.js +++ b/src/structures/ClientUser.js @@ -84,7 +84,7 @@ class ClientUser extends User { * @type {Collection} * @private */ - this.friendNicknames = new Collection(); + if (!this.friendNicknames?.size) this.friendNicknames = new Collection(); } /**