A context menu message command that rewrites notion links from https://
to notion://
to open directly in app rather than your browser.
Currently notion:// links aren't clicakble in Discord, so this is not that useful lol.
This is using the starter template for Slshx, a library for building strongly-typed Discord commands that run on Cloudflare Workers, using a React-inspired syntax.
See the Slshx repository for setup instructions.
Also, install wrangler
npm run dev
Deploy to Cloudflare first, than deploy/update your commands for Discord
npm run deploy:cf
npm run deploy:global
https://discord.com/api/oauth2/authorize?client_id=936329215857553480&scope=applications.commands