Taimoor-Tariq / BetterDiscordStuff

My BetterDiscord Plugins and Themes
https://ko-fi.com/TaimoorTariq
GNU General Public License v2.0
19 stars 17 forks source link

[ BUG | SendTimestamps ] Invalid output when inline timestamp edited before sending #33

Closed TheChilliPL closed 2 years ago

TheChilliPL commented 2 years ago

I put in a date: image I change the day, the preview seems correct: image The original time gets output: image

Also, if I try to edit the message and replace the output with a new inline timestamp thing, and try sending it, the plugin doesn't seem to replace it: image image

Taimoor-Tariq commented 2 years ago

Fixed in the latest version 💛.

P.S. you actually have to make some changes to the message as discord does not fire an edit event if nothing is edited.

TheChilliPL commented 2 years ago

By the way, with explicit formats specified in the string itself it would be possible to convert the Discord timestamp thing () back into your double bracket thing, right? It would be so nice if it actually happened when editing a message!

TheChilliPL commented 2 years ago

Is there any reason the plugin resets seconds back to zero? image Also after sending: image

TheChilliPL commented 2 years ago

(Adding 59 to the timestamp manually does work)

Taimoor-Tariq commented 2 years ago

Is there any reason the plugin resets seconds back to zero?

I will look into this and fix it.

­

It would be so nice if it actually happened when editing a message!

Currently, this is not possible as there is no proper way for me to get the current content of a message int the text area. If I can find a way to get this I will add it to the plugin.

TheChilliPL commented 2 years ago

The editing bug seems to be back @Taimoor-Tariq