1.0.3 • Published 1 year ago
discord-things v1.0.3
🎁 Discord-things
Features
- ⏱️ Easy to user
- ⚙️ Customizable
Functions
- Forms 📄
- Memes 😂
- Slot 🎰
- Truth or dare 🎭
- Coin flip 🪙
Installation
npm install discord-things
New features in version 1.0.2
- Throw errors
- Coin flip function
- Send forms to a specific channel
- Footer and image optional
Examples
const { Client, Intents } = require('discord.js')
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES] })
client.on('ready', () => {
console.log('Ready!')
})
client.on('messageCreate', async (message) => {
if(message.content === '!memes') {
const { Memes } = require('discord-things')
//At the moment the memes will be in english
await Memes({
message: message, //Object
boton_uno: { //First button customization
etiqueta: 'Remove', //Label
emoji: '🛑', //Emoji (Optional)
estilo: 'DANGER' //Style
},
boton_dos: {
etiqueta: 'Next',
emoji: '▶️',
estilo: 'DANGER'
},
tiempo: '300000', //Time for disabled
autor: 'Only <@[usuario]> can use!', //Only the author
color: 'GREEN', //Embed color
remover: 'You remove the button!' //Remove button action
})
}
})
client.login('TOKEN')