Change API version

This commit is contained in:
Julia Logan 2021-11-13 17:59:04 +00:00
parent c763b90dd4
commit 7316887915

View file

@ -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);