devland.js-invites
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -19,3 +19,3 @@ const {Client, Store} = require("devland.js"); | ||
this.client.guilds.forEach(guild => { | ||
guild.fetchInvite().then(invites => { | ||
guild.fetchInvites().then(invites => { | ||
invites.forEach(invite => { | ||
@@ -38,3 +38,3 @@ let _a = this.cache.invites[guild.id] ? this.cache.invites[guild.id] : new Store() | ||
guilds.forEach(guild => { | ||
guild.fetchInvite().then(invites => { | ||
guild.fetchInvites().then(invites => { | ||
invites.forEach(invite => { | ||
@@ -58,3 +58,3 @@ let _a = this.cache.invites[guild.id] ? this.cache.invites[guild.id] : new Store() | ||
this.client.on('guildAdded', guild => { | ||
guild.fetchInvite().then(invites => { | ||
guild.fetchInvites().then(invites => { | ||
invites.forEach(invite => { | ||
@@ -95,3 +95,3 @@ let _a = this.cache.invites[guild.id] ? this.cache.invites[guild.id] : new Store() | ||
if(!guild) return; | ||
let currentInvites = await guild.fetchInvite().catch(()=>{}) | ||
let currentInvites = await guild.fetchInvites().catch(()=>{}) | ||
if(!currentInvites) { | ||
@@ -98,0 +98,0 @@ return this.emit('unknowInvite', member) |
{ | ||
"name": "devland.js-invites", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Easy invite logger system with devland.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11525
10