Change API version
This commit is contained in:
parent
c763b90dd4
commit
7316887915
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -11,7 +11,7 @@ modules.forEach(function(module) {
|
||||||
|
|
||||||
function setStatus(text) {
|
function setStatus(text) {
|
||||||
var data = JSON.stringify({ custom_status: { text } });
|
var data = JSON.stringify({ custom_status: { text } });
|
||||||
var Request = https.request("https://discord.com/api/v8/users/@me/settings");
|
var Request = https.request("https://discord.com/api/v9/users/@me/settings");
|
||||||
Request.method = "PATCH";
|
Request.method = "PATCH";
|
||||||
Request.setHeader("authorization", config.token);
|
Request.setHeader("authorization", config.token);
|
||||||
Request.setHeader("content-length", Buffer.from(data).length);
|
Request.setHeader("content-length", Buffer.from(data).length);
|
||||||
|
|
Loading…
Reference in a new issue