# discord-memoji

> Memoji is a discord npm package that allows you to manage every emotes/emojis on your server in an easy and efficient way.

Latest version **1.1.0** (published 2021-07-10) · ISC license · 0 weekly downloads

## Install

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

## 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-10 |
| First published | 2021-07-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | nyrok, mokmi |
| Keywords | emoji, discord, discord.js, easy, src, nyrok, mokmi, funny, open-source, help, unicode |

## Links

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

## Dependencies (2)

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

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2021-07-10
- 1.0.0 — 2021-07-09
- 0.1.1 — 2021-07-08

## README

# discord-memoji [![](https://img.shields.io/badge/Made%20with-%F0%9F%92%96-red)](https://www.npmjs.com/package/discord-memoji)
> **A npm package to manage easily server's emojis.**
# Usage 
#### Initialization
You have to install [discord.js](https://npmjs.com/package/discord.js) version including v12.
*This structure is necessary in order for the package to work.*
```js
const { 
    Client,
    Structures
} = require('discord.js')
require('discord-memoji')(Structures);
const client = new Client();
```
#### Show Emoji's URL with Message Listener
> The structure of our functions is made with "**Guild**" class so be sure to use it. Then, our functions will just do the job for you !
```js
client.on('message', message => {
    if (message.content.startsWith("!emojishow")) {
        let emoji = message.content.split(" ").slice(1)
        message.reply(message.guild.emojiShow(emoji))
    }
})
``` 
#### Add Emoji with Message Listener
> Parameter `image` only works with image links and not files at the moment.
```js
client.on('message', message => {
if (message.content.startsWith("!emojiadd")) { 
        let args = message.content.split(" ")
        let name = args[1]
        let image = args[2]
        console.log(image)
        message.guild.emojiAdd(name, image);
    }
})
```
#### All of This (Full Example)
```js
const {
    Client,
    Structures
} = require('discord.js')
require('discord-memoji')(Structures);
const client = new Client();

client.on('message', message => {
    if (message.content.startsWith("!emojishow")) {
        let emoji = message.content.split(" ").slice(1)
        message.reply(message.guild.emojiShow(emoji))
    }
    if (message.content.startsWith("!emojiadd")) {
        let args = message.content.split(" ")
        let name = args[1]
        let image = args[2]
        console.log(image)
        message.guild.emojiAdd(name, image);
    }
})
client.login('YOUR_CLIENT_TOKEN');
```
# Install
`npm install discord-memoji`
# Changelog
> ## **1.1.0**
>    * Adding guild.\<functions\> extension according with [Discord.js](https://www.npmjs.com/package/discord.js).
>    * Adding [colors](https://www.npmjs.com/package/colors) package.
>    * Adding emojiShow function.
>    * Adding emojiAdd function.
# Credits
* Nyrok :
  - [Github](https://github.com/Nyrok) ![GitHub followers](https://img.shields.io/github/followers/Nyrok?style=social)
  - [Twitter](https://twitter.com/@Nyrok10) ![Twitter Follow](https://img.shields.io/twitter/follow/Nyrok10?style=social)
* Plattyz :
  - [Github](https://github.com/Plattyz) ![GitHub followers](https://img.shields.io/github/followers/Plattyz?style=social)
  - [Twitter](https://twitter.com/@0x4d6f6b6d69) ![Twitter Follow](https://img.shields.io/twitter/follow/0x4d6f6b6d69?style=social)
> Don't forget to Star this open-source repo ! ![GitHub Repo stars](https://img.shields.io/github/stars/Plattyz/discord-memoji?style=social)
# License
Apache-2.0

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