Fixed starboard

This commit is contained in:
loicbersier 2020-01-01 15:02:02 +01:00
parent 963981401d
commit 973474f9c9
2 changed files with 2 additions and 2 deletions

View file

@ -81,7 +81,7 @@ class MessageReactionAddListener extends Listener {
let message = await channel.messages.get(boardID); let message = await channel.messages.get(boardID);
// If the original embed description is empty make this embed empty ( and not undefined ) // If the original embed description is empty make this embed empty ( and not undefined )
let description; let description;
if (message.embeds[0].description == undefined) if (message.embeds[0].description == '')
description = ''; description = '';
let Embed = client.util.embed() let Embed = client.util.embed()

View file

@ -79,7 +79,7 @@ class messageReactionRemoveListener extends Listener {
let message = await channel.messages.get(boardID); let message = await channel.messages.get(boardID);
// If the original embed description is empty make this embed empty ( and not undefined ) // If the original embed description is empty make this embed empty ( and not undefined )
let description; let description;
if (message.embeds[0].description == undefined) if (message.embeds[0].description == '')
description = ''; description = '';
let Embed = client.util.embed() let Embed = client.util.embed()