Skip to content

Commit

Permalink
fix: primeaccess fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiTenno committed Aug 27, 2018
1 parent 947bb09 commit aa1a945
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/embeds/NewsEmbed.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ class NewsEmbed extends BaseEmbed {
this.timestamp = new Date(first.date);
this.url = first.link;
} else {
this.fields = value.map(val => ({ name: '_ _', value: val.join('\n') }));
if (Array.isArray(value[0])) {
this.fields = value.map(val => ({ name: '_ _', value: val.join('\n') }));
} else {
[this.description] = value;
}
this.footer.text = platform.toUpperCase();
}
this.image = { url: first ? first.imageLink : '' };
Expand Down

0 comments on commit aa1a945

Please sign in to comment.