discord-url

6.0.0 • Public • Published
stats

Buy Me A Coffee

npm version npm info

⚠️ 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.

Typing SVG

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

Typing SVG

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)

Typing SVG

Click Here To Get Support!

# 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> }
})

Typing SVG

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}`);
})



Typing SVG

Discord Banner
Buy Me A Coffee

Package Sidebar

Install

npm i discord-url

Weekly Downloads

191

Version

6.0.0

License

GPL-3.0

Unpacked Size

43.6 kB

Total Files

5

Last publish

Collaborators

  • beykant