Adicionar o "ErikrafT Drop" ao Discord
This directory contains a minimal HTML page example that can be used as a basis for publishing a custom Activity on Discord. The page simply embeds the ErikrafT Drop website inside an iframe and adds the client_type=discord-activity parameter so the device is identified with the Discord icon on the web interface.
- Host the content of this folder on a domain accessible by Discord (HTTPS required).
- In the Discord Developer Portal, create or select an application and enable the Activities option.
- Provide the hosted URL to
index.htmlas the Activity URL. - Publish the activity to your server and open it directly in Discord. ErikrafT Drop will load inside the client.
The iframe tag is configured with the minimum necessary permissions:
clipboard-write,camera, andmicrophoneallow Drop to access device resources if the user authorizes it.allow-same-origin allow-scripts allow-popups allow-formsare required for the application to function correctly within Discord's sandbox.
- Adjust the theme, colors, or logo according to your server's identity.
- Replace
https://drop.erikraft.com/with another instance if you are hosting ErikrafT Drop on your own domain.
Thanks to the client_type=discord-activity parameter, any device using this activity will instantly appear on public/index.html with the Discord icon, maintaining a consistent experience across web, bot, and VS Code extension.