discord.js-avatar
v1.0.0
Published
A simple utility to display a member's avatar in an embedded message.
Downloads
30
Readme
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
// 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
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
// 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!