Fix bug (Hot fix)
This commit is contained in:
parent
0ab2f9e729
commit
d227e0584b
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "discord.js-selfbot-v13",
|
"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]",
|
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||||
"main": "./src/index.js",
|
"main": "./src/index.js",
|
||||||
"types": "./typings/index.d.ts",
|
"types": "./typings/index.d.ts",
|
||||||
|
@ -93,11 +93,7 @@ class UserManager extends CachedManager {
|
|||||||
const data = await this.client.api.users(id).get();
|
const data = await this.client.api.users(id).get();
|
||||||
const userObject = this._add(data, cache);
|
const userObject = this._add(data, cache);
|
||||||
await userObject.getProfile().catch(() => {});
|
await userObject.getProfile().catch(() => {});
|
||||||
const noteObject = await this.client.api.users['@me']
|
// Clear not because event emitted .-. Bug report by https://github.com/aSashaaa
|
||||||
.notes(id)
|
|
||||||
.get()
|
|
||||||
.catch(() => null);
|
|
||||||
userObject.note = noteObject?.note ?? null;
|
|
||||||
return userObject;
|
return userObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user