Improved Logs

master
masterhc 1 year ago
parent 9b9cad67a0
commit 129a4e5600

@ -222,7 +222,7 @@ class _Client extends Client
{ {
this.on('messageReactionAdd', (reaction, user)=> this.on('messageReactionAdd', (reaction, user)=>
{ {
console.log('Lib: Message: Reaction: Added', reaction._emoji.name); console.log('Lib: RoleSetter: Reaction: Added', reaction._emoji.name);
(async ()=> (async ()=>
{ {
const rule = await roleRulesM.findOne({mID:reaction.message.id,roleEmoji:reaction._emoji.id}).then(rule =>{return rule}).catch(err=>{return null}) const rule = await roleRulesM.findOne({mID:reaction.message.id,roleEmoji:reaction._emoji.id}).then(rule =>{return rule}).catch(err=>{return null})

Loading…
Cancel
Save