Skip to content

Commit

Permalink
update for slash commands
Browse files Browse the repository at this point in the history
  • Loading branch information
hrfee committed Jan 26, 2022
1 parent a7decba commit 3ba2eee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions content/docs/bots/discord-faq.md
Expand Up @@ -6,11 +6,15 @@ draft: false

# Discord FAQ

### How do i setup slash commands?

If you've followed the setup process recently, this should work by default. If not, you'll need to go through the setup process again starting from step 6. You'll also need to kick and re-add your bot using the new link.

### How does this work?

* There is a `Link Discord` button on the sign-up form. When clicked, the user is given a short PIN code (e.g. `AB-CD-EF`).
* If the user is already a member of your Discord server, they send `!start` (or your own command) to the channel you set in "Settings > Discord > Channel to monitor". If they aren't a member, you can enable "Provide server invite" in settings to display an invite next to the PIN.
* After sending the start message, they receive a DM from the bot asking for the PIN. Once they send it, they return to the sign-up form.
* If the user is already a member of your Discord server, they send `/start` (or your own command) to the channel you set in "Settings > Discord > Channel to monitor". If they aren't a member, you can enable "Provide server invite" in settings to display an invite next to the PIN.
* After sending the start message, they are asked to send `/pin <PIN>` where PIN is the one shown on the form. Once they send it, they return to the sign-up form.
* Once the user has signed up, notifications, password resets, announcements and such can be sent to them via Discord.

You can also connect a Discord user to a Jellyfin account in the Accounts tab if the user's already signed up.
Expand Down
2 changes: 1 addition & 1 deletion content/docs/bots/discord.md
Expand Up @@ -39,7 +39,7 @@ Open the side menu (if necessary), and open the "OAuth2" tab.
Scroll down the page to the "Scopes" section, check all the checkboxes shown below, and save. Once done, press the "Copy" button below the Client ID to copy it. **Replace the `YOUR_CLIENT_ID` in the below link and visit it to add the bot to your desired Discord server.**

```url
https://discordapp.com/oauth2/authorize?&client_id=YOUR_CLIENT_ID&scope=bot&permissions=268454913
https://discord.com/api/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=2415938561&scope=applications.commands%20bot
```


Expand Down
Binary file modified static/discord/6.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3ba2eee

Please sign in to comment.