Hello, this is just a quick update that adds new options to ReactionRoles module, thanks to
@Neonn_Bukkit for suggesting these!
You can now use
required-role: SomeRole in the selector option so that the user needs to have this role before getting the new one.
Also you can now create selector where selecting only one of the roles is possible using
only-one-role: true option.
See the examples below
Update steps:
Replace the old reactionRoles.py with the new one
Adjust your config if you want to use these new features, add this section to the config:
Code (YAML):
role-removed-embed:
enabled: true
send-to: dm
# possible values: 'dm' = user's direct messages, 'channel' = the channel of selector embed-title: "Role removed, {user}" embed-description: "Role **{role}** has been removed from your account!" embed-footer: "FoxCode Reaction Roles" embed-color: 0xff0000
Restart the bot
Code (YAML):
selector-creation-admin-role: Administrator
role-added-embed:
enabled: true
send-to: dm
# possible values: 'dm' = user's direct messages, 'channel' = the channel of selector embed-title: "Role added, {user}" embed-description: "New role **{role}** has been added to your account!" embed-footer: "FoxCode Reaction Roles" embed-color: 0x00ff00
role-removed-embed:
enabled: true
send-to: dm
# possible values: 'dm' = user's direct messages, 'channel' = the channel of selector embed-title: "Role removed, {user}" embed-description: "Role **{role}** has been removed from your account!" embed-footer: "FoxCode Reaction Roles" embed-color: 0xff0000
another-role-required-embed:
send-to: dm
# possible values: 'dm' = user's direct messages, 'channel' = the channel of selector embed-title: "Another role required, {user}" embed-description: "Sorry, you have to have **{required_role}** before you can acquire this role." embed-footer: "FoxCode Reaction Roles" embed-color: 0xff0000
selectors:
rules: # This is the selector name embed-title: "Server Rules" embed-description: "Please, agree with our server rules by clicking the confirm button." embed-footer: "FoxCode Reaction Roles" embed-color: 0x00ff00
options:
agreeRules:
emoji: "✅" role: RulesAccepted
multi-role-selector: # This is the selector name embed-title: "Select your role:" embed-description: " - Role 1\n - Role 2" embed-footer: "FoxCode Reaction Roles" embed-color: 0x00ff00
only-one-role: true
# If set to true, user will be able to only select one role from the selector options:
Role1:
emoji: "" role: Role1
required-role: RulesAccepted
# The user has to have RulesAccepted role to be able to get the Role1 role Role2:
emoji: "" role: Role2
If you have any questions, feel free to ask on our Discord server! Have a nice day!