This theme component allows you to add a Discord Widget as a dropdown to your Discourse site header.
To find your Server ID navigate to:
- Server Settings
- Widget Settings
- Enable Server Widget
- Copy Server ID
- Paste it in your theme settings:
On mobile, the Discord widget is replaced with an invite link so that users can open the server in the Discord app itself. This requires the invite url.
To generate an invite url:
- Edit a specific channel setting
- Select Invites on the Left Sidebar
- Select "Create One"
- Set Invite to Expire After: "Never":
- Select Generate New Link Button
- Copy the generated new link to the theme setting entitled:
discord_invite_url
The theme allows for a variety of settings. Below are some details on each setting.
Select to only shows the widget to logged in users.
Based on Discourse's Trust Level System (more info). Enter a number value representing the trust level a user must be at in order to see the widget.
Select to only show the widget to staff members (moderators and admins).
Use the dropdown to select one or more groups. Users in any of the groups listed will be able to see the widget.
Toggle the theme of the Discord widget. Select either light/dark to force set a theme or select 'auto' to have the theme automatically be chosen based on Discourse scheme.