From d227e0584b9b0865ba7594e5bcfbb576d1595450 Mon Sep 17 00:00:00 2001 From: March 7th <71698422+aiko-chan-ai@users.noreply.github.com> Date: Sun, 17 Apr 2022 22:22:55 +0700 Subject: [PATCH] Fix bug (Hot fix) --- package.json | 2 +- src/managers/UserManager.js | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 1bd8b87..9abc365 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "discord.js-selfbot-v13", - "version": "1.3.9", + "version": "1.3.91", "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]", "main": "./src/index.js", "types": "./typings/index.d.ts", diff --git a/src/managers/UserManager.js b/src/managers/UserManager.js index d8083bc..401979e 100644 --- a/src/managers/UserManager.js +++ b/src/managers/UserManager.js @@ -93,11 +93,7 @@ class UserManager extends CachedManager { const data = await this.client.api.users(id).get(); const userObject = this._add(data, cache); await userObject.getProfile().catch(() => {}); - const noteObject = await this.client.api.users['@me'] - .notes(id) - .get() - .catch(() => null); - userObject.note = noteObject?.note ?? null; + // Clear not because event emitted .-. Bug report by https://github.com/aSashaaa return userObject; }