1.0.9 • Published 3 years ago
discord-avatar v1.0.9
ENGLISH
A simple utility to display a member's avatar in an embedded message.
- By default it supports 5 languages, more can be added.
 - Supported languages: English, Spanish, Portuguese, Russian, Chinese, German.
 The color of the embed is assigned by the color of the role
If you want to change it go to
node_modules/discord-avatar/index.jsand change.setColor(message.guild.me.displayHexColor) ↓ .setColor("Your Color")Colors: htmlcolorcodes.com
Supports only discord.js@^13.6.0 (master).
Installation
npm install discord-avatar
Usage
Basic Bot Example
// Import the discord-avatar package.
const avatarEmbed = require('discord-avatar');
// Call the avatarEmbed method, only the first argument is required.
// * language: Language in which the embedded message will be sent.
avatarEmbed(message, language = 'english');
// And voila now you have an avatar command with embeds!// Import the discord-avatar package.
const avatarEmbed = require('discord-avatar');
module.exports = {
    name: 'avatar',
    execute(message) {
// Call the avatarEmbed method, only the first argument is required.
// * language: Language in which the embedded message will be sent.
        avatarEmbed(message, language = 'english');
    }
};Preview

SPANISH
Una sencilla utilidad para mostrar el avatar de un miembro en un mensaje embebecido.
- Por defecto se soporta 5 idiomas, se pueden agregar más.
 - Idiomas soportados: Inglés, Español, Portugués, Ruso, Chino y Alemán
 El color del embed se asigna mediante el color del rol
Si desea cambiarlo vaya a
node_modules/discord-avatar/index.jsy cambie.setColor(message.guild.me.displayHexColor) ↓ .setColor("Tu Color")Colores: htmlcolorcodes.com
Solo admite discord.js@^13.6.0 (master).
Instalación
npm install discord-avatar
Uso
Ejemplo de bot básico
// Importar el paquete discord-avatar.
const avatarEmbed = require('discord-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!// Importar el paquete discord-avatar.
const avatarEmbed = require('discord-avatar');
module.exports = {
    name: 'avatar',
    execute(message) {
// 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');
    }
};Vista previa
