Merge remote-tracking branch 'refs/remotes/origin/server' into server
This commit is contained in:
@ -31,6 +31,17 @@ class Profiles
|
||||
await profile.init(user_id);
|
||||
return profile;
|
||||
}
|
||||
|
||||
async block(user_id) {
|
||||
|
||||
// blocker & blocked
|
||||
let response = await this.client._post("/api/block/",
|
||||
[this.client.me.user_id, user_id],
|
||||
);
|
||||
|
||||
let data = await response.json();
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export {Profiles}
|
||||
export {Profiles}
|
||||
|
Reference in New Issue
Block a user