mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 16:28:26 +00:00
Throw error is no-go, so replaced with console.log
This commit is contained in:
parent
32b2971865
commit
bd1ed74877
5 changed files with 6 additions and 6 deletions
|
|
@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -116,7 +116,7 @@ module.exports = async (client, interaction) => {
|
|||
})
|
||||
}
|
||||
catch (error) {
|
||||
throw error;
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ module.exports = (client) => {
|
|||
});
|
||||
|
||||
} catch (error) {
|
||||
throw error;
|
||||
console.log(error);
|
||||
}
|
||||
})();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue