Html Embeds
This would be really simple have a embed with an iframe in it. You can put whatever you want in the embed. So this could be buttons, form elements, and other things. This could be sending the html or sending a embed url.
EDIT:
To make sure this is secure, the iframe will need to be sandboxed. sandbox="allow-scripts allow-forms" note, that "allow-top-navigation", "allow-same-origin", "allow-pointer-lock", and "allow-popups" are not present.
"allow-pointer-lock" and "allow-popups" are disabled as not to annoy the user.
-
That's a great feature and all, but I don't think Discord would want that.
1. Security reasons.
2. It would take more time to load the web page.
3 -
I mean you can sandbox iframe with sandbox="allow-scripts allow-forms" note, that "allow-top-navigation", "allow-same-origin", "allow-pointer-lock", and "allow-popups" are not present.
"allow-pointer-lock" and "allow-popups" are disabled as not to annoy the user.
10 -
This is a great idea. Bots could have a better input system, and not just rely on reactions and messages. Websites are a possibility, but it would be a great way to keep everything inside of discord.
16 -
This sounds really awesome! I would love to see either this, or the "bot interaction URIs" another user suggested. This puts more of the overhead on the bot developer but would be 10x as powerful.
6 -
That's what I thought cause right now you can't really do a good looking help page or other with embeds.They should make embeds more customizable, you should be able to change the background color, text color, font size and similiar things at least
4 -
I think this would be a great idea. I’m developing bots that work on checking and outputting code from different languages. I would love to create a custom command like !html ```<h1>hello world!</h1>```, and have it make an embed with a snapshot of sorts that shows the html output.
3 -
I know this is hopeless, but it would be nice to have this. Even if it was a year old suggestion... :)
3 -
This would be amazing for bot input. it would allow for more advanced and intuitive input.
3 -
This would be extremely useful!
1 -
With the new features that's coming for bots, this is less for a user interface and more to show more advanced content
1 -
i need this so bad
1 -
Imagine the usefulness of this! Forums would use bbcode i think to embed things like equipment loadouts with hover tooltips (like item details style) on the items. Totally see folks using this a lot! Right now folks just take screenshots from websites that do have these features and post the images :/
1 -
It wouldn't make it slower really if you mean by requesting for the html since it already fetches the content over a proxy to get previews of images etc
1 -
Technically I believe this is already working through YouTube embed previews in Discord. I also would love to see this support, particularly for oEmbed previews with rich html / iFramed content.
1 -
I think they should add this but have a button to show it so you choose to load it rather than it slowing things down.
0 -
No they should not implement a full-scale js / html support.
First of, discord would need to pre-load the whole webdeployment and proxy it to you for obvious security reasons.
Okay and even if it would be secure there would be a huge performance problem.
I would rather prefer a provided api for a simple ui elments in a chat like buttons, images, containers.
Discord call me <30
U moet u aanmelden om een opmerking te plaatsen.
Opmerkingen
16 opmerkingen