From 500ec547e20d681c625b8381b9e6755047ca3c85 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 7 Aug 2021 23:55:04 +0200 Subject: [PATCH] Wiki: Clarify reaction_roles format again Signed-off-by: Knut Ahlers --- mod_reactionRole.go | 2 +- wiki/Home.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod_reactionRole.go b/mod_reactionRole.go index ff7f95b..8e98395 100644 --- a/mod_reactionRole.go +++ b/mod_reactionRole.go @@ -147,7 +147,7 @@ func (m modReactionRole) Setup() error { } func (m modReactionRole) extractRoles() (map[string]string, error) { - // @attr reaction_roles required []string "" List of strings in format `emote=role-id[:set]` (`✅=873653932478574632:set` = Unicode-Emote ✅ to add role 873653932478574632 and prevent it to be removed again, `:thx:862322180896063489=873649098740342855` = Custom emote `:thx:` with corresponding ID to add role 873649098740342855) + // @attr reaction_roles required []string "" List of strings in format `emote=role-id[:set]`. `emote` equals a unicode Emote () or a custom emote in form `::`. `role-id` is the integer ID of the guilds role to add with this emote. If `:set` is added at the end, the role will only be added but not removed when the reaction is removed. list, err := m.attrs.StringSlice("reaction_roles") if err != nil { return nil, errors.Wrap(err, "getting role list") diff --git a/wiki/Home.md b/wiki/Home.md index 603b20c..0e0aa5c 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -116,7 +116,7 @@ Creates a post with pre-set reactions and assigns roles on reaction | --------- | :--: | ---- | ------------- | ----------- | | `discord_channel_id` | ✅ | string | | ID of the Discord channel to post the message to | | `embed_title` | ✅ | string | | Title of the embed | -| `reaction_roles` | ✅ | []string | | List of strings in format `emote=role-id[:set]` (`✅=873653932478574632:set` = Unicode-Emote ✅ to add role 873653932478574632 and prevent it to be removed again, `:thx:862322180896063489=873649098740342855` = Custom emote `:thx:` with corresponding ID to add role 873649098740342855) | +| `reaction_roles` | ✅ | []string | | List of strings in format `emote=role-id[:set]`. `emote` equals a unicode Emote () or a custom emote in form `::`. `role-id` is the integer ID of the guilds role to add with this emote. If `:set` is added at the end, the role will only be added but not removed when the reaction is removed. | | `embed_color` | | int64 | `0x2ECC71` | Integer / HEX representation of the color for the embed | | `embed_description` | | string | | Description for the embed block | | `embed_thumbnail_height` | | int64 | | Height of the thumbnail |