From 4d1dc6037e26066a8d28555efbe90b76e8733c80 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Sat, 2 May 2020 00:04:50 +0200 Subject: [PATCH] Show author id Signed-off-by: loicbersier --- event/listeners/error.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/event/listeners/error.js b/event/listeners/error.js index 721ac907..414290ef 100644 --- a/event/listeners/error.js +++ b/event/listeners/error.js @@ -20,8 +20,11 @@ class errorListener extends Listener { .setTitle('Shit happened!') .addField('Command', command.id, true) .addField('Error', message, true) - .addField('Message', error, true); + .addField('Message', error, true) + .addField('Author', `${message.author.tag} (${message.author.id})`); + channel.send(errorEmbed); + //Get current date let today = new Date(); let dd = today.getDate();