Wiki: Clarify role IDs are required

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-07-31 23:22:10 +02:00
parent 9cc66bc610
commit 868eacdf95
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D
3 changed files with 4 additions and 4 deletions

View File

@ -74,7 +74,7 @@ func (m modLivePosting) handlePresenceUpdate(d *discordgo.Session, p *discordgo.
return
}
// @attr whitelisted_role optional string "" Only post for members of this role
// @attr whitelisted_role optional string "" Only post for members of this role ID
whitelistedRole := m.attrs.MustString("whitelisted_role", ptrStringEmpty)
if whitelistedRole != "" && !str.StringInSlice(whitelistedRole, member.Roles) {
// User is not allowed for this config

View File

@ -76,7 +76,7 @@ func (m modLiveRole) handlePresenceUpdate(d *discordgo.Session, p *discordgo.Pre
return
}
// @attr role_streamers optional string "" Only take members with this role into account
// @attr role_streamers optional string "" Only take members with this role ID into account
roleStreamer := m.attrs.MustString("role_streamers", ptrStringEmpty)
if roleStreamer != "" && !str.StringInSlice(roleStreamer, member.Roles) {
// User is not part of the streamer role

View File

@ -39,7 +39,7 @@ Announces stream live status based on Discord streaming status
| `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 |
| `stream_freshness` | | duration | `5m` | How long after stream start to post shoutout |
| `whitelisted_role` | | string | | Only post for members of this role |
| `whitelisted_role` | | string | | Only post for members of this role ID |
## Type: `liverole`
@ -50,7 +50,7 @@ Adds live-role to certain group of users if they are streaming on Twitch
| `role_streamers_live` | ✅ | string | | Role ID to assign to live streamers |
| `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 into account |
| `role_streamers` | | string | | Only take members with this role ID into account |
## Type: `presence`