bryanberger / discord-notion-message-command

Rewrites a notion link (https://) to (notion://) in a message and returns it back to the user

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Notion Message Rewrite Command

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.

demo

Develop

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

Build

Deploy to Cloudflare first, than deploy/update your commands for Discord

npm run deploy:cf
npm run deploy:global

Add to your server

https://discord.com/api/oauth2/authorize?client_id=936329215857553480&scope=applications.commands

About

Rewrites a notion link (https://) to (notion://) in a message and returns it back to the user

License:MIT License


Languages

Language:JavaScript 82.6%Language:TypeScript 17.4%