Throw error is no-go, so replaced with console.log

This commit is contained in:
CorwinDev 2022-12-14 20:26:07 +01:00
parent 32b2971865
commit bd1ed74877
5 changed files with 6 additions and 6 deletions

View file

@ -18,7 +18,7 @@ module.exports = async (client, interaction, args) => {
await client.createLeaderboard(`🔧・Banlist - ${interaction.guild.name}`, list, interaction);
}).catch(error => {
throw error;
console.log(error)
})
}

View file

@ -116,7 +116,7 @@ module.exports = async (client, interaction) => {
})
}
catch (error) {
throw error;
console.log(error)
}
}
else {

View file

@ -53,7 +53,7 @@ module.exports = async (client) => {
}
})
client.on(Discord.Events.RoleUpdate, (oldRole, newRole) => {
client.on(Discord.Events.GuildRoleUpdate, (oldRole, newRole) => {
if (oldRole.rawPosition !== newRole.rawPosition) {
client.emit('rolePositionUpdate', newRole, oldRole.rawPosition, newRole.rawPosition);
}

View file

@ -39,7 +39,7 @@ module.exports = async (client) => {
return message.react(client.emotes.normal.error);
} catch (error) {
message.react(client.emotes.normal.error);
throw error;
console.log(error);
}
} else {
if (message.content == countData.Count) {
@ -63,7 +63,7 @@ module.exports = async (client) => {
return message.react(client.emotes.normal.error);
} catch (error) {
message.react(client.emotes.normal.error);
throw error;
console.log(error)
}
}
}

View file

@ -53,7 +53,7 @@ module.exports = (client) => {
});
} catch (error) {
throw error;
console.log(error);
}
})();
}