"Components" support for Alerts system
Wolfie713 opened this issue ยท 9 comments
Why?
One feature it has that I believe people would find quite useful, at least for custom alerts, is being able to make use of Discords "Components" feature. One specific part of it in particular, which is being able to make buttons that have a label that (when clicked) lead to URL's. Of course, it allows the use of buttons for other reasons, or drop down menu items. Either way, might be worth adding and seeing what people come up with when using it.
The "Primary/Secondary/Success/Danger/Link" text in the buttons are what type of buttons they are. Different text can be used, I only used the names to make it simple.
What and How?
It should allow the components feature of Discord messages to be used.
Example of what I'm thinking it would look like in the alerts.yml file. Obviously how it would really work would be up to how it's implemented, this is only to give an idea of what I'm thinking.
Component:
-
- Style: 1
Label: "Primary"
Type: 2
- Style: 2
Label: "Secondary"
Type: 2
- Style: 3
Label: "Success"
Type: 2
- Style: 4
Label: "Danger"
Type: 2
- Style: 5
Label: "Link"
Url: "http://link.to/some/url"
Type: 2
- Type: 3
Options:
- Label: "Drop Down"
Value: "dd"
Description: "Description"
Default: "true"
- Label: "menu list"
Value: "ml"
Description: "I'm a gummy bear."
Are there alternatives?
Not that I know of.
Checks
- I have used the search at least once to check if my idea has already been suggested and perhaps already implemented.
Anything else
No response
Came on to make this request specifically for verify, DM a bot is very oldschool.
Verify needs to change to this system that has dynamic feedback in a channel with buttons.
https://support.discord.com/hc/en-us/articles/1500012250861-Bots-Buttons
If I remembered correctly, it is going to use slash commands.
Thats definitely less friendly than a GUI you just click, the implementation should be with the buttons. Have you ever used a well made discord bot that uses them? it can be entirely dynamic for that user with input for a code.
@TomLewis
A different method of linking is planned for v2.0 of the plugin.
Either way the user has to input something. Sometimes it's easier just to type something out than to try to get fancy with it. Honestly, I think sending a message to the bot is quite simple, though wouldn't mind if there was another way to verify that might be easier for people who get confused on what to do.
One way I've seen places do it, is to generate a link in game, that all they have to do is click to open discord with it and click verify.
Uses oAuth.
https://discord.com/developers/docs/topics/oauth2
This wouldn't require any code to be copied at all!
Ah yes, instead of just DMing a bot on discord let's request "access" to people's accounts just to link to Minecraft. I'm sure that'll be easier for people and not at all freak them out