# discord-vanity

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

Latest version **1.1.0** (published 2021-07-08) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install discord-vanity
pnpm add discord-vanity
yarn add discord-vanity
bun add discord-vanity
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2021-07-08 |
| First published | 2021-07-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | @Nyrok10 on Twitter |
| Maintainers | nyrok |
| Keywords | discord.js, discord, vanity-url, vanity, guild, src, nyrok |

## Links

- npm: https://www.npmjs.com/package/discord-vanity
- Repository: https://github.com/Nyrok/discord-vanity
- Homepage: https://github.com/Nyrok/discord-vanity#readme
- Issues: https://github.com/Nyrok/discord-vanity/issues
- npm.io page: https://npm.io/package/discord-vanity

## Dependencies (3)

- [colors](https://npm.io/package/colors.md) ^1.4.0
- [discord.js](https://npm.io/package/discord.js.md) ^12.5.3
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-07-08
- 1.0.13 — 2021-07-07
- 1.0.12 — 2021-07-07
- 1.0.11 — 2021-07-07
- 1.0.1 — 2021-07-07
- 1.0.0 — 2021-07-05

## README

# discord-vanity [![](https://img.shields.io/badge/Made%20with-%F0%9F%92%96-red)](https://www.npmjs.com/package/discord-vanity)
> **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 :
```js
const { Client, Structures } = require("discord.js");
const client = new Client();
require('discord-vanity')(Structures);

client.on('message', message => {
  if(message.content.startsWith("!vanity")){
    const url = message.content.split(" ").slice(1);
    message.guild.setVanityURL(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.1.0**
    * Adding guild.<functions> extension according with [Discord.js](https://www.npmjs.com/package/discord.js).
    * Optimizing error's management.
# License
Apache-2.0 - [Nyrok](https://github.com/Nyrok)

---
_Source: https://npm.io/package/discord-vanity · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
