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,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);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue