fasent
v1.0.1
Published
este paquete falicita la detección de los roles, agregados o eliminados del evento guildMemberUpdate
Downloads
11
Readme
Fasent
Fasent es una [API] Muy facil de usar, como es la primera versión solo funciona para el evento guildMemberUpdate este detecta si al usuario le han removido o agregado un role
Instalación 🔧
Para instalar simplemente colocamos
npm i fasent
USO
const fasent = require('fasent')
let check = fasent.checkrole;
client.on("guildMemberUpdate", (oldMember, newMember) => {
if(oldMember.roles.size !== newMember.roles.size){
let result = check(oldMember,newMember)
client.channels.get("ID-CANAL").send(`${newMember.guild.roles.get(result.role)} ha sido ${result.tipo}`)
}
})