Fixed regretion now users are able to update pfp
This commit is contained in:
parent
52207b0065
commit
921dbcf0dd
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,6 @@ class localuser{
|
|||
if(this.initialized){
|
||||
const users=user.userids[temp.d.id];
|
||||
console.log(users,temp.d.id)
|
||||
|
||||
if(users){
|
||||
users.userupdate(temp.d);
|
||||
console.log("in here");
|
||||
|
@ -395,7 +394,8 @@ class localuser{
|
|||
updatepfp(file){
|
||||
var reader = new FileReader();
|
||||
reader.readAsDataURL(file);
|
||||
reader.onload = function () {
|
||||
console.log(this.headers);
|
||||
reader.onload = () =>{
|
||||
fetch(info.api.toString()+"/v9/users/@me",{
|
||||
method:"PATCH",
|
||||
headers:this.headers,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue