# discord.js-avatar

> A simple utility to display a member's avatar in an embedded message.

Latest version **1.0.0** (published 2020-10-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install discord.js-avatar
pnpm add discord.js-avatar
yarn add discord.js-avatar
bun add discord.js-avatar
```

## 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.0.0 |
| Published | 2020-10-15 |
| First published | 2020-10-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | xiuh |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2020-10-15

## README

<div align="center">
  <p>
    <a href="https://nodei.co/npm/discord.js-avatar
/"><img src="https://nodei.co/npm/discord.js-avatar.png?downloads=true&stars=true" alt="NPM info" /></a>
  </p>
</div>


# discord.js-avatar

# ENGLISH
A simple utility to display a member's avatar in an embedded message.

* By default it supports 2 languages, more can be added.
* Supported languages: English, Spanish.
* The color of the embed can be changed in future updates.

Supports only discord.js@^12.0.0 (master).

# Installation
* `npm install discord.js-avatar`

# Usage
__Basic Bot Example__

```js
// Import the discord.js-avatgar package.
const avatarEmbed = require('discord.js-avatar');

// Call the avatarEmbed method, only the first argument is required.
// * language: Language in which the embedded message will be sent.
avatarEmbed(message, language = 'spanish');
// And voila now you have an avatar command with embeds!
```
# Preview
![Demo](https://i.imgur.com/CHRAjXu.png)

<div align="center">
  <p>
    <img src="https://lh3.googleusercontent.com/proxy/TJqkDuQdqtOOYjn8d_L-TMXP6Sy7Q3vAmwu9flr0wPnxDizcNE736-b4RFPIXAazGnAsEnPIq5zPC4MW-IXGQwgz6xqT1l0" alt="Line separator"/>
  </p>
</div>

# SPANISH
Una sencilla utilidad para mostrar el avatar de un miembro en un mensaje embebecido.

* Por defecto soporta 2 idiomas, se pueden agregar más.
* Idiomas soportados: Inglés, Español.
* El color del embed se podrá cambiar en futuras actualizaciones.

Solo admite discord.js@^12.0.0 (master).

# Instalación
* `npm install discord.js-avatar`

# Uso
__Ejemplo de bot básico__

```js
// Importar el paquete discord.js-avatar.
const avatarEmbed = require('discord.js-avatar');

// Llama al método avatarEmbed, se requiere solo el primer argumento.
// * language: Idioma en el que se enviará el mensaje embebecido.
avatarEmbed(message, language = 'spanish');
// Y listo ahora tienes un comando de avatar con embeds!
```
# Vista previa
![Demo](https://i.imgur.com/OFnh5NK.png)

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