1.1.0 • Published 3 years ago

discord-vanity v1.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 years ago

discord-vanity npm.io

A discord.js extension to set a new vanity URL for your guild.

Needs

  • Client (with Token)
  • Guild with vanity URL feature (Boost lvl 3)

Usage

Example Usage with Message Listener :

const Discord = require("discord.js");
const client = new Discord.Client();
const vanity = require('discord-vanity');

client.on('message', message => { if(message.content.startsWith("!vanity")){ const url = message.content.split(" ").slice(1); vanity.setVanityURL(client, message.guild, url); message.reply("The vanity url has been changed to " + url) } })

client.login('YOUR_CLIENT_TOKEN');

**Test with your client : "`!vanity nyrok`"**
# Install
`npm install discord-reply`
# Changelog
## * **1.0.13**
    * Adding README.md file.
    * Adding discord.js and colors's packages.
    * Fix of wrong client user.
    * Fix of guild missing feature.
    * Fix of client doesn't have permission 'MANAGE_GUILD'
# License
Apache-2.0 - [Nyrok](https://github.com/Nyrok)