statch / gitbot

The most trusted Discord dev toolkit with 500k+ users ✨🚀
https://statch.org/gitbot
Other
110 stars 15 forks source link

Remove parent message embed after GitBot's enhanced commit info is sent #452

Open bagusnl opened 2 days ago

bagusnl commented 2 days ago

Is your feature request related to a problem? Please describe. Having both Discord's embed and GitBot's own commit/code info in the chat box can take a lot of space, most of time it's the whole window filled with those two. image image

Describe the solution you'd like Remove any embeds from parent message after GitBot successfully sent enhanced commit/code info to the chat.

Describe alternatives you've considered Manually removing the embed from parent message, which is quite tedious.

Additional context None

github-actions[bot] commented 2 days ago

Hi! This is your first issue, we're glad to have you with us :smile: Make sure to follow the code of conduct. Happy coding!

seven7ty commented 4 hours ago

Hi! I know this issue and remember thinking about it back when this feature was just being added, but sadly, there is not really an alternative. Discord handles embeds by allowing you to remove them through the edit message endpoint, and sadly, that is not available on messages that are not yours — not your message, not yours to edit — thus the bot can't touch a user's message. The only possible alternative would be deleting the original message afterward which, in my eyes, is not too great across the board.