mirror of
https://github.com/Luzifer/discord-community.git
synced 2024-11-09 15:40:03 +00:00
Wiki: Clarify role IDs are required
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9cc66bc610
commit
868eacdf95
3 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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`
|
||||
|
||||
|
|
Loading…
Reference in a new issue