In Settings → Integrations, install Discord and choose Add to Discord.
Pick your server and approve.
In any channel, use the slash commands, such as
/note,/append,/daily,/capture,/search,/list, and/read. To keep a message, open its Apps menu and choose Save to Granite.
Only people who can manage the Discord server can connect or disconnect Granite.