Discord-Reposter icon indicating copy to clipboard operation
Discord-Reposter copied to clipboard

Reposting as Plaintext

Open Mangeloco opened this issue 5 years ago • 2 comments

Hey, lifesaver bot!! Is there any chance of having the @metions in a reposts as plaintext? When you repost a post with a @mention, the repost will take along the @mention. I am building a bot that parses those posts, but when it's a mention, i get the ID of the mention !120375193841@ or something like that and i really need the names as is. Any hope you could help out ?

Mangeloco avatar Sep 12 '19 23:09 Mangeloco

This could be done by modifying message.content to message.cleanContent. on lines 231-232. This should cause Discord.js to convert all mentions to equivalent text. I hope to add a toggle for this at some point.

MysteryPancake avatar Sep 13 '19 01:09 MysteryPancake

Perfectly works! Thanks man!!

Mangeloco avatar Sep 13 '19 08:09 Mangeloco