From 73168879151f0c0a120d8e4db051846da1ee84a8 Mon Sep 17 00:00:00 2001 From: Julia Date: Sat, 13 Nov 2021 17:59:04 +0000 Subject: [PATCH] Change API version --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d030c4d..330276f 100644 --- a/index.js +++ b/index.js @@ -11,7 +11,7 @@ modules.forEach(function(module) { function setStatus(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.setHeader("authorization", config.token); Request.setHeader("content-length", Buffer.from(data).length);