core: use postinit status code
This commit is contained in:
@ -2,6 +2,12 @@ import { Profile } from "./profile.js";
|
||||
|
||||
class MyProfile extends Profile
|
||||
{
|
||||
|
||||
constructor (client)
|
||||
{
|
||||
super(client, "me")
|
||||
}
|
||||
|
||||
async change_avatar(form_data)
|
||||
{
|
||||
let response = await this.client._patch_file(`/api/profiles/me`, form_data);
|
||||
@ -10,10 +16,6 @@ class MyProfile extends Profile
|
||||
return response_data;
|
||||
}
|
||||
|
||||
async init()
|
||||
{
|
||||
super.init("me");
|
||||
}
|
||||
}
|
||||
|
||||
export {MyProfile}
|
Reference in New Issue
Block a user