This commit is contained in:
2024-02-01 12:57:32 +01:00
committed by AdrienLSH
parent 910a8861e5
commit 22dd4a0299
14 changed files with 67 additions and 40 deletions

View File

@ -42,6 +42,14 @@ class Profiles
return profile;
}
async getProfileId(id)
{
let profile = new Profile(this.client, undefined, id);
if (await profile.init())
return null;
return profile;
}
/**
* Block a user
* @param {Number} user_id