Should stop undefined spamming in error channel
parent
822034982b
commit
ad5662c565
|
@ -73,7 +73,7 @@ export default class Util {
|
||||||
public async handleError(error: Error, message?: Message, command?: Command, disable = true): Promise<void> {
|
public async handleError(error: Error, message?: Message, command?: Command, disable = true): Promise<void> {
|
||||||
try {
|
try {
|
||||||
this.signale.error(error);
|
this.signale.error(error);
|
||||||
const info = { content: `\`\`\`js\n${error.stack}\n\`\`\``, embed: null };
|
const info = { content: `\`\`\`js\n${error.stack || error}\n\`\`\``, embed: null };
|
||||||
if (message) {
|
if (message) {
|
||||||
const embed = new RichEmbed();
|
const embed = new RichEmbed();
|
||||||
embed.setColor('FF0000');
|
embed.setColor('FF0000');
|
||||||
|
|
Loading…
Reference in New Issue