0
const request = require('request');

let token = '';
let server = '';

const url = {
    url: `https://discord.com/api/v10/guilds/${server}/vanity-url`,
    method: "PATCH",
    headers: {
        Authorization: `User ${token}`,
        "Content-Type": "application/json",
    },
    body: JSON.stringify({
        code: "terbo231",
    }),
};

request(url, (err, res, body) => {
    if (err) return console.log(err);
    console.log(body);
})

I am trying to make a vanity sniper but only 401... any help would be overly appreciated.

Medi
  • 1
  • 1

0 Answers0