Add catch
This commit is contained in:
parent
b9fa194933
commit
c2704c1c22
6
index.js
6
index.js
|
@ -252,6 +252,8 @@ client.on("ready", async () => {
|
||||||
})
|
})
|
||||||
guild.fetchVanityData().then(vanityData => {
|
guild.fetchVanityData().then(vanityData => {
|
||||||
client.invites[vanityData.code] = vanityData.uses
|
client.invites[vanityData.code] = vanityData.uses
|
||||||
|
}).catch(err => {
|
||||||
|
// do fuck all, they dont have vanity
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -440,7 +442,9 @@ client.on('guildMemberAdd', async (member) => { // We're just gonna always send
|
||||||
}]
|
}]
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
}).catch(err => {
|
||||||
|
// do fuck all, they dont have vanity
|
||||||
|
})
|
||||||
|
|
||||||
|
|
||||||
if (defcon <= 3) {
|
if (defcon <= 3) {
|
||||||
|
|
Loading…
Reference in a new issue