Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
discord-14-easy
Advanced tools
Readme
npm install discord-14-easy
const { Client, MessageEmbed, MessageButton, MessageActionRow } = require('discord-14-easy');
const client = new Client() //não precisa colocar as intents, ele já vem com todas elas!
client.login('token do seu client aqui')
client.on('ready', () => {
console.log(`[ MANAGER ] - client ONLINE COMO ${client.user.tag} | ${client.users.cache.size} Users, ${client.guilds.cache.size} Guilds, ${client.channels.cache.size} Channels`)
const commands = [
{
name: 'teste',
description: 'teste',
options: [
{
name: 'test',
type: 6, //https://discord-api-types.dev/api/discord-api-types-v10/enum/ApplicationCommandOptionType
description: 'teste ok?',
required: true
}
]
}
]
client.setCommands(commands)
})
client.on('interactionCreate', async (interaction) => {
if(interaction.commandName === 'teste') {
const button = new MessageButton({ label: 'Aperte Aqui', customId: 'teste', style: 'PRIMARY', emoji: '⭐'}).view()
const row = new MessageActionRow().addComponents(button)
const embed = new MessageEmbed().setTitle('Teste').setDescription('descrição').setColor('Red')
let msg = await interaction.reply({ embeds: [embed], components: [row], fetchReply: true})
let filter = user => user
const collector = msg.createMessageComponentCollector({ filter: filter, time: 60000})
collector.on('collect', (i) => {
i.reply('teste')
})
}
})
const { Button, MessageActionRow } = require('discord-14-easy')
let button = new Button({label: 'label',
emoji: '⭐',
style: 'SUCCESS', //styles do djs v13.9.2
customId: 'teste' //caso o type não for link isso é necessário
}).view()
const row = new MessageActionRow().addComponents(button)
client.setStatus('Sou um client perfeito', 'online') //['online', 'stream', 'watch', 'listen']
client.getUser('id')
client.getGuild('id')
client.getChannel('id')
client.destroy()
const commands = [
{
name: 'teste',
description: 'teste',
options: [
{
name: 'test',
type: 6,
description: 'teste ok?',
required: true
}
]
}
]
client.setCommands(commands)
client.on('interactionCreate', async (interaction) => {
if(interaction.commandName === 'teste') {
const button = new MessageButton({ label: 'Aperte Aqui', customId: 'teste', style: 'PRIMARY', emoji: '⭐'}).view()
const row = new MessageActionRow().addComponents(button)
const embed = new MessageEmbed().setTitle('Teste').setDescription('descrição').setColor('Red')
let msg = await interaction.reply({ embeds: [embed], components: [row], fetchReply: true})
let filter = user => user
const collector = msg.createMessageComponentCollector({ filter: filter, time: 60000})
collector.on('collect', (i) => {
i.reply('teste')
})
}
})
client.send('id', {}) // o {} , deve ser usado igual uma msg normal, tipo content: 'teste'
client.login('Seu token aqui')
client.users => retorna os usuários
client.guilds => retorna os servidores
client.channels => retorna os canais
client.user => retorna o usuário do client
client.data => retorna o client inteiro
FAQs
use a v14 de uma forma fácil
The npm package discord-14-easy receives a total of 1 weekly downloads. As such, discord-14-easy popularity was classified as not popular.
We found that discord-14-easy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.