Socket
Socket
Sign inDemoInstall

naotori

Package Overview
Dependencies
82
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    naotori

NPM que te permite crear tarjetas de bievenida para tu servidor de Discord, de una manera sencilla y rápida.


Version published
Weekly downloads
1
decreased by-83.33%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Naotori

NPM para manipulación de imágenes de una manera sencilla.

NPM

Características

  • Fácil de usar ✨
  • Muy personalizable 🎨
  • Rápido y eficiente 🚀

Ejemplos

Wellcome Card

const naotori = require('naotori')
const Discord = require('discord.js')

const backgroundURL = 'https://i.imgur.com/uSdbqvV.png'
const memberIconURL = 'https://cdn.discordapp.com/avatars/836683769871859793/3a6085416bfb524f5096929d723c17e7.png?size=2048'
const title = 'Hola que tal bienvenid@'
const description = 'Espero que te la pases muy bien'

const WellcomeCard = await new naotori.wellcomeCard() // debe haber un await antes de comenzar el cosntructor
    .setBackground(backgroundURL) // OPCIONAL | El fondo en estas primeras versiones será de resolución: 1018 x 468.
	.setMemberIcon(memberIconURL) // OBLIGATORIO | El ícono del miembro debe ser en formato 'png' | Puedes establecerlo añadiendo la opción - format: 'png' - , en las opciones del avatar.
	.setTitle(title) // OBLIGATORIO | El título tiene como máximo 37 carácteres de longitud, de ser mayor, se agregarám puntos suspensivos al texto
	.setDescription(description) // OPCIONAL | La descripción puede ser de una longitud mayor.
	.render() // OBLIGATORIO | Esta opción debe estar para poder usar la imagen.

const attachment = new Discord.MessageAttachment(WellcomeCard, 'bienvenida.png') // Creamos el archivo

canal.send({ files: [attachment]}) // Enviamos la imagen a un canal

Preview

WellcomeCard

Keywords

FAQs

Last updated on 04 Mar 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc