|
|
@ -22,13 +22,13 @@ class channelDeleteListener extends Listener {
|
|
|
|
const channel = this.client.channels.resolve(await logStats.get('channel'));
|
|
|
|
const channel = this.client.channels.resolve(await logStats.get('channel'));
|
|
|
|
let Embed = this.client.util.embed()
|
|
|
|
let Embed = this.client.util.embed()
|
|
|
|
.setColor('NAVY')
|
|
|
|
.setColor('NAVY')
|
|
|
|
.setTitle('Channel created!')
|
|
|
|
.setTitle('Channel deleted!')
|
|
|
|
.setDescription(`${GuildChannel.type} channel ${GuildChannel} got deleted!`)
|
|
|
|
.setDescription(`${GuildChannel.type} channel ${GuildChannel.name} got deleted!`)
|
|
|
|
.setTimestamp();
|
|
|
|
.setTimestamp();
|
|
|
|
|
|
|
|
|
|
|
|
if (!deletionLog) return channel.send(Embed);
|
|
|
|
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);
|
|
|
|
channel.send(Embed);
|
|
|
|
}
|
|
|
|
}
|
|
|
|