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

starboard: include link to original message

This commit is contained in:
Dragory 2019-01-03 04:49:31 +02:00
parent 7139d81a5e
commit 4a33932ffa

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);
}