From fce771cc6ae3a2e9e212d0da538318281526df64 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 2 Jun 2020 23:03:59 +0200 Subject: [PATCH] Show channel name and fix title Signed-off-by: loicbersier --- event/listeners/log/channelDelete.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/event/listeners/log/channelDelete.js b/event/listeners/log/channelDelete.js index 8657306d..5d708bd1 100644 --- a/event/listeners/log/channelDelete.js +++ b/event/listeners/log/channelDelete.js @@ -22,16 +22,16 @@ class channelDeleteListener extends Listener { const channel = this.client.channels.resolve(await logStats.get('channel')); let Embed = this.client.util.embed() .setColor('NAVY') - .setTitle('Channel created!') - .setDescription(`${GuildChannel.type} channel ${GuildChannel} got deleted!`) + .setTitle('Channel deleted!') + .setDescription(`${GuildChannel.type} channel ${GuildChannel.name} got deleted!`) .setTimestamp(); if (!deletionLog) return channel.send(Embed); - Embed.setDescription(`${GuildChannel.type} channel ${GuildChannel} got deleted by ${deletionLog.executor}`); + Embed.setDescription(`${GuildChannel.type} channel ${GuildChannel.name} got deleted by ${deletionLog.executor}`); channel.send(Embed); } } } -module.exports = channelDeleteListener; \ No newline at end of file +module.exports = channelDeleteListener;