Skip to content
Permalink
Browse files

make jmod reddit posts consistent with tweets

  • Loading branch information...
gc committed Jun 9, 2019
1 parent aa5f2c6 commit fba643ce25b7367ecaad5efe45f55178bceb2258
Showing with 2 additions and 2 deletions.
  1. +2 −2 bot/events/redditPosts.js
@@ -53,7 +53,7 @@ module.exports = class extends Event {

sendEmbed({ text, url, title, jmod }) {
const embed = new MessageEmbed()
.setDescription(`${url}\n\n ${he.decode(text)}`)
.setDescription(he.decode(text))
.setColor(1942002)
.setAuthor(jmod.formattedName, undefined, `https://www.reddit.com/user/${jmod.redditUsername}`);

@@ -65,7 +65,7 @@ module.exports = class extends Event {
this.client.guilds.filter(guild => guild.settings.get('jmodComments'))
.map(guild => {
const channel = guild.channels.get(guild.settings.get('jmodComments'));
if (channel) channel.send(embed);
if (channel) channel.send(`<${url}>`, { embed });
});
}

0 comments on commit fba643c

Please sign in to comment.
You can’t perform that action at this time.