3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-17 15:15:02 +00:00

starboard: include link to original message

This commit is contained in:
Dragory 2019-01-03 04:49:31 +02:00
parent 627ba82196
commit ddda3942ac

View file

@ -287,7 +287,10 @@ export class StarboardPlugin extends ZeppelinPlugin {
}
}
const starboardMessage = await (channel as TextChannel).createMessage({ embed });
const starboardMessage = await (channel as TextChannel).createMessage({
content: `https://discordapp.com/channels/${this.guildId}/${msg.channel.id}/${msg.id}`,
embed
});
await this.starboards.createStarboardMessage(starboard.id, msg.id, starboardMessage.id);
}