# discord-get

> Get Discord ID with mentions

Latest version **0.2.0** (published 2019-04-20) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2019-04-20 |
| First published | 2019-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Kitsune IDK |
| Maintainers | velocidusk |
| Keywords | discord, mentions, id |

## Links

- npm: https://www.npmjs.com/package/discord-get
- Repository: none
- npm.io page: https://npm.io/package/discord-get

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.2.0 (latest) — 2019-04-20
- 0.1.8 — 2019-04-20
- 0.1.7 — 2019-04-20
- 0.1.6 — 2019-04-20
- 0.1.5 — 2019-04-20
- 0.1.4 — 2019-04-20
- 0.1.3 — 2019-04-20
- 0.1.2 — 2019-04-20
- 0.1.1 — 2019-04-20
- 0.1.0 — 2019-04-20

## README

This module has the function to get **Discord ID** from messages removing <@ and > from the mention

**Commands and your results using `var discordid = require('discord-get');`:**
* `discordid.mention('<@123456789>');` the result is `getMentionID` if ocurred a error the `getErr` code is `1`
* `discordid.channel('<#123456789>');` the result is `getChannelID` if ocurred a error the `getErr` code is `2`
* `discordid.role('<@&123456789>');` the result is `getRoleID` if ocurred a error the geterr `getErr` code is `3`
* `discordid.mentionReverse('123456789');` the result is `getMentionMessage`
* `discordid.channelReverse('123456789');` the result is `getChannelMessage`
* `discordid.roleReverse('123456789');` the result is `getRoleMessage`

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