Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- try {
- command.execute(client, message, args);
- } catch (error) {
- console.error(error);
- message.channel.send({
- content: 'There was an error while executing this command! I reported that to the staff team!'
- });
- const channel = client.channels.cache.get(`Your Error ChannelID`);
- const embed = new EmbedBuilder()
- .setTitle("Someone had an error!")
- .addFields(
- {name: "User:", value: `<@${message.author.id}>`, inline: false}
- )
- .setDescription(`\`${error}\``)
- .setColor("Red")
- channel.send({
- embeds: [embed]
- }).catch(err => {
- return;
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment