Automating an invite to a discord channel

I’m working on a membership site where a private Discord channel is part of the required feature set. I wanted to be able to generate a one time invite code for each user. This was surprisingly challenging.

The first step is registering a Discord server…this can be done from within the Discord app.