Skip to content

Commit

Permalink
Merge branch 'pending' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
CyaOnDaNet committed Nov 7, 2020
2 parents bef47f6 + f9ac9c8 commit 34b0200
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ var tautulliCheck = schedule.scheduleJob('0 */2 * * * *', async function() {
let userToModify = client.guilds.cache.get(userList.guild).members.resolve(userList.discordUserID);
var bypass = false;

if (userToModify === undefined) {
if (userToModify === undefined || userToModify === null) {
// User no longer exists in the Discord Server, we can't modify it at all so skip over them
continue;
}
Expand Down
8 changes: 4 additions & 4 deletions src/functions/processHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ module.exports = async(data) => {
let guildSettings = client.getGuildSettings.get(userList.guild);
var bypass = true;

if (userToModify === undefined) {
if (userToModify === undefined || userToModify === null) {
// User no longer exists in the Discord Server, we can't modify it at all so skip over them
continue;
}
Expand Down Expand Up @@ -475,7 +475,7 @@ module.exports = async(data) => {
let guildSettings = client.getGuildSettings.get(userList.guild);
var bypass = true;

if (userToModify === undefined) {
if (userToModify === undefined || userToModify === null) {
// User no longer exists in the Discord Server, we can't modify it at all so skip over them
continue;
}
Expand Down Expand Up @@ -543,7 +543,7 @@ module.exports = async(data) => {
let userToModify = client.guilds.cache.get(userList.guild).members.resolve(userList.discordUserID);
var bypass = false;

if (userToModify === undefined) {
if (userToModify === undefined || userToModify === null) {
// User no longer exists in the Discord Server, we can't modify it at all so skip over them
continue;
}
Expand Down Expand Up @@ -617,7 +617,7 @@ module.exports = async(data) => {
let userToModify = client.guilds.cache.get(userList.guild).members.resolve(userList.discordUserID);
var bypass = false;

if (userToModify === undefined) {
if (userToModify === undefined || userToModify === null) {
// User no longer exists in the Discord Server, we can't modify it at all so skip over them
continue;
}
Expand Down

0 comments on commit 34b0200

Please sign in to comment.