Removed empty field
Signed-off-by: loicbersier <loic.bersier1@gmail.com>
This commit is contained in:
parent
9b3308d118
commit
57602e33fa
1 changed files with 4 additions and 8 deletions
|
@ -20,26 +20,22 @@ class channelUpdateListener extends Listener {
|
||||||
.setTimestamp();
|
.setTimestamp();
|
||||||
|
|
||||||
if (oldChannel.name !== newChannel.name) {
|
if (oldChannel.name !== newChannel.name) {
|
||||||
Embed.addField('', '')
|
Embed.addField('Previous channel', oldChannel.name, true)
|
||||||
.addField('Previous channel', oldChannel.name, true)
|
|
||||||
.addField('New channel', newChannel.name, true);
|
.addField('New channel', newChannel.name, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldChannel.topic !== newChannel.topic) {
|
if (oldChannel.topic !== newChannel.topic) {
|
||||||
Embed.addField('', '')
|
Embed.addField('Previous channel topic', oldChannel.topic, true)
|
||||||
.addField('Previous channel topic', oldChannel.topic, true)
|
|
||||||
.addField('New channel topic', newChannel.topic, true);
|
.addField('New channel topic', newChannel.topic, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldChannel.nsfw !== newChannel.nsfw) {
|
if (oldChannel.nsfw !== newChannel.nsfw) {
|
||||||
Embed.addField('', '')
|
Embed.addField('Previous channel nsfw', oldChannel.nsfw, true)
|
||||||
.addField('Previous channel nsfw', oldChannel.nsfw, true)
|
|
||||||
.addField('New channel nsfw', newChannel.nsfw, true);
|
.addField('New channel nsfw', newChannel.nsfw, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldChannel.rateLimitPerUser !== newChannel.rateLimitPerUser) {
|
if (oldChannel.rateLimitPerUser !== newChannel.rateLimitPerUser) {
|
||||||
Embed.addField('', '')
|
Embed.addField('Previous channel slowmode', `${oldChannel.rateLimitPerUser} seconds`, true)
|
||||||
.addField('Previous channel slowmode', `${oldChannel.rateLimitPerUser} seconds`, true)
|
|
||||||
.addField('New channel slowmode', `${newChannel.rateLimitPerUser} seconds`, true);
|
.addField('New channel slowmode', `${newChannel.rateLimitPerUser} seconds`, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue