fix url bugs and improve account switcher
This commit is contained in:
parent
0fe2966ad1
commit
5148e1b77b
19 changed files with 186 additions and 175 deletions
|
@ -16,7 +16,7 @@ class Member {
|
|||
navigator.clipboard.writeText(this.id);
|
||||
});
|
||||
this.contextmenu.addbutton("Message user", function () {
|
||||
fetch(this.info.api.toString() + "/v9/users/@me/channels", { method: "POST",
|
||||
fetch(this.info.api + "/v9/users/@me/channels", { method: "POST",
|
||||
body: JSON.stringify({ "recipients": [this.id] }),
|
||||
headers: this.headers
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue