mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-08 15:10:02 +00:00
Document role hierarchy
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
3e3af3a645
commit
35888b0abd
2 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ func (m *modLiveRole) Initialize(id string, crontab *cron.Cron, discord *discord
|
|||
func (m modLiveRole) Setup() error { return nil }
|
||||
|
||||
func (m modLiveRole) addLiveStreamerRole(guildID, userID string, presentRoles []string) error {
|
||||
// @attr role_streamers_live required string "" Role ID to assign to live streamers
|
||||
// @attr role_streamers_live required string "" Role ID to assign to live streamers (make sure the bot [can assign](https://support.discord.com/hc/en-us/articles/214836687-Role-Management-101) this role)
|
||||
roleID := m.attrs.MustString("role_streamers_live", nil)
|
||||
if roleID == "" {
|
||||
return errors.New("empty live-role-id")
|
||||
|
|
|
@ -90,7 +90,7 @@ Adds live-role to certain group of users if they are streaming on Twitch
|
|||
|
||||
| Attribute | Req. | Type | Default Value | Description |
|
||||
| --------- | :--: | ---- | ------------- | ----------- |
|
||||
| `role_streamers_live` | ✅ | string | | Role ID to assign to live streamers |
|
||||
| `role_streamers_live` | ✅ | string | | Role ID to assign to live streamers (make sure the bot [can assign](https://support.discord.com/hc/en-us/articles/214836687-Role-Management-101) this role) |
|
||||
| `twitch_client_id` | ✅ | string | | Twitch client ID the token was issued for |
|
||||
| `twitch_client_secret` | ✅ | string | | Secret for the Twitch app identified with twitch_client_id |
|
||||
| `role_streamers` | | string | | Only take members with this role ID into account |
|
||||
|
|
Loading…
Reference in a new issue