⚠️ Warn Message;
This Method Is A Forbidden Method On Discord, It Violates Discord Terms And Other Rules.
I do not accept any responsibility, advice and return on the people who will use it.
To Install the discord-url
module, open a console and write the code below.
For npm
npm i discord-url
For Yarn
yarn add discord-url
For CommonJS
const { VanityClient }= require("discord-url")
const urlClient = new VanityClient("Self Token","Guild ID",true)
For ES6
import { VanityClient } from "discord-url";
const urlClient = new VanityClient("Self Token","Guild ID",true)
# Function
urlClient.setVanityURL("luppux"); // It Helps You Set The Specified URL
# Events
urlClient.on("VanitySuccess", async(res) => {
console.log(res); // return; { vanityURL:"luppux" ,guildID:""1011632065885765743 }
})
urlClient.on('VanityError', async(err) => {
console.log(err); // return; { error: <Error Message Received> }
})
const { VanityClient }= require("discord-url")
const urlClient = new VanityClient("Self Token","Guild ID",true)
urlClient.setVanityURL("luppux");
urlClient.on("VanitySuccess", async(response) => {
console.log(`URL ${response.vanityURL} Successfully Received!`);
})
urlClient.on('VanityError', async(error) => {
console.log(`An Error Occurred While Retrieving URL!\nError; ${error}`);
})