Starts with a slash command
Suggestions
Good ideas scroll away in #general. /suggest gives each one its own post with vote buttons and pings your mods once it has the number of upvotes you set.
Illustration. The real interface may look different.
How it works
/suggest opens a form with one field for the idea.
The idea is posted in your suggestions channel with an upvote and a downvote button.
Each member votes once per suggestion.
At the number of upvotes you set, the bot pings your mod role.
How to make a suggestion box on Discord
Votes are counted per suggestion message, and a marker per member keeps the count honest. The dashboard has a simpler version of this as a template.
Describe it to your AI assistant
People drop ideas in #general and a day later nobody can find them. Build a suggestions module: /suggest opens a small form and posts every idea in #suggestions with upvote and downvote buttons, one vote per member. When a suggestion reaches 10 upvotes, post it in #mods with a ping for the Mods role and the list of members who voted for it. Show the current counts on the two buttons and send the alert only once per suggestion. Make the channels and the threshold settings.
Copy it and swap in your own channel and role names. Your assistant has a tested version of this example to start from.
Build it in the editor
Four flows: /suggest, the submitted form and one each for the two vote buttons. In the "Create new flow" dialog, "Start from a template" offers "Suggestions" as a starting point.
The 4 flows, step by stepStep names are the ones the editor shows.
Flow 1/suggest
Trigger: Slash command/suggest, with a five-minute cooldown per member.
- Show modalOpens the form with one field for the idea.
Flow 2Form submitted
Trigger: Modal submittedmatched to the suggestion form.
- Lookup table: get valueReads the idea from the form.
- Create messageBuilds the suggestion post with the upvote and downvote buttons.
- Send messagePosts it in the suggestions channel.
- Store a valueStarts the vote count for this message at 0.
- Reply to interactionConfirms to the member, visible only to them.
Flow 3Upvote
Trigger: Button clickedfrom the upvote button.
- Read a stored valueLooks up whether this member already voted on this suggestion.
- Store a valueSets their marker.
- Increase a stored numberAdds 1 to the count.
- Set key in stored lookup tableNotes the voter in the list of supporters.
- Update messageRewrites the post so the buttons show the new counts.
- Greater or equalCompares the count with your threshold.
- Set stored value if (atomic)Claims the alert for this suggestion, so it goes out once.
- Send messagePosts the suggestion link and its supporters in the moderator channel, with the role ping.
Flow 4Downvote
Trigger: Button clickedfrom the downvote button.
- Read a stored valueDoes the same check for an earlier vote.
- Increase a stored numberTakes 1 off the count.
- Remove key from stored lookup tableRemoves the member from the list of supporters.
- Update messageRewrites the post with the new counts.
Test it, change it
What it stores
- VotesBy custom keyThe net count per suggestion, filed under the ID of its message.
- VotedBy custom keyOne marker per member and suggestion, plus one per suggestion once its alert has gone out.
- VotersBy custom keyWho supports a suggestion, so the moderator alert can name them.
How to test it
- Open a flow in the editor and click "Test run". Choose the member under "Run as" and click "Run test". The run uses your real server data but sends, changes and deletes nothing, and shows what each step would have done.
- A new flow is a "Draft" and does not run in Discord. Switch it on and click "Save & activate".
- Set the threshold to 1 for the test. Run /suggest in Discord, upvote once and check the moderator channel. A second click on the same button should be refused.
- Each real run then shows up under "Executions", with the reason if it failed or was skipped.
What to change
- Channels
- The suggestions channel and the moderator channel are settings in the module's "Configuration" tab.
- Threshold
- The "Vote threshold" setting. The template starts at 5.
- Role ping
- The role mention is part of the alert text in the Upvote flow. Swap the role there or take it out.
- Cooldown
- Change the "Cooldown" on the /suggest trigger.
Watch out for
- The dashboard template is a simpler version of this build. It shows no counts on the buttons, has no role ping, and posts the alert again with every upvote past the threshold.
- Votes are final. A member cannot switch from up to down.
Questions about this build
Can members vote on their own suggestion?
Yes, in this build. To stop it, store the author with the suggestion and compare them with the voter at the start of both vote flows.
How do I mark a suggestion as accepted or rejected?
This build has no status. A common addition is a context menu entry for your team that edits the post and adds "Accepted" or "Declined" with a reason.
Does a suggestion box need its own channel?
It works in any channel, but a dedicated one is easier to read. Take away Send Messages for members there, so the channel holds only the bot's posts and ideas come in through /suggest.
More examples
Želiš svoj server u beti?
V3 je velik sustav i još se brzo mijenja, pa serveri ulaze jedan po jedan, a ne svi odjednom. Svaku prijavu čita čovjek, a odgovor dobivaš u nekoliko dana.
Serveri koji su već u beti odlučuju o velikom dijelu onoga što gradimo dalje. Ono što izgradiš tvoje je: flowovi i moduli ostaju i nakon što beta završi.