forked from Supositware/Haha-Yes
Show channel name and fix title
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
4cdbc5298f
commit
fce771cc6a
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
module.exports = channelDeleteListener;
|
||||
|
|
Loading…
Reference in a new issue