From 35888b0abdf808e4b0c221f24b8b5e9f7ec98114 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Tue, 24 Aug 2021 18:02:06 +0200 Subject: [PATCH] Document role hierarchy Signed-off-by: Knut Ahlers --- mod_liveRole.go | 2 +- wiki/Home.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_liveRole.go b/mod_liveRole.go index cea3842..b60b85a 100644 --- a/mod_liveRole.go +++ b/mod_liveRole.go @@ -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") diff --git a/wiki/Home.md b/wiki/Home.md index 5eebb46..0f0208a 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -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 |