-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sync starboard... Somehow... #26
Comments
it could be synced in a single message which is pinned and edited whenever the starboard changes |
Discord messages have Reactions, which can be used for "starring" messsges. Then messages that get starred can be pinned in the respective channel. The bot can hook Reaction events when somebody reacts to a message, making starring easy. I'm not sure how we could star on stack though. For pulling the board from stack, I don't believe we can hook starboard events, but the starboard itself can be (and is) loaded seperately, so it may be that we simply poll regularly to see if anything is new. Combining the numbers together should get a "total stars" type figure |
that is nicer, but more work, since there is a need to keep track of the pinned messages, and unpin them when necessary |
We'd need to keep track of things for an amount of time anyway. I also had the idea of having a single "starboard message" which can be eternally edited with the latest starboard content. Stops there being an endless list of pinned messages, and we can control the order depending on the amount of stars like Stack does now. We're gonna have to keep tracking of messages anyway for edits both ways. Currently we duplicate a message in Discord when it's edited on stack, and we don't push edits to Discord at all. |
For now as a sort of proof of concept, if the bot sees a message from discord get starred, it will add a ⭐ reaction to the original message. If it gets unstarred to the point of hvaing 0 stars left, the reaction will be removed. It turns out we can hook star events 🤷♂️ |
I don't know if there is a way to make some messages "important" in Discord. Maybe create a "starred" room, and maintain the messages there. But we should keep the starboard feature in Discord too.
The text was updated successfully, but these errors were encountered: