diff --git a/mod_livePosting.go b/mod_livePosting.go index b195609..a9222dc 100644 --- a/mod_livePosting.go +++ b/mod_livePosting.go @@ -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 diff --git a/mod_liveRole.go b/mod_liveRole.go index c2a931f..26721be 100644 --- a/mod_liveRole.go +++ b/mod_liveRole.go @@ -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 diff --git a/wiki/Home.md b/wiki/Home.md index cf9408d..2a67a3d 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -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`