MysteryPancake / Discord-Reposter

Bot for reposting Discord messages (work in progress)
MIT License
92 stars 121 forks source link

Reposting as Plaintext #17

Open Mangeloco opened 5 years ago

Mangeloco commented 5 years ago

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 ?

MysteryPancake commented 5 years ago

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.

Mangeloco commented 5 years ago

Perfectly works! Thanks man!!