diff options
author | 2021-06-13 14:30:41 +0100 | |
---|---|---|
committer | 2021-06-13 14:30:41 +0100 | |
commit | f2ef6c12b0a872413bad33186bc60bbbdd17f304 (patch) | |
tree | 3433441f206c2aba2ef85576a90b37128ac8e6ea | |
parent | Merge pull request #1629 from JakeM0001/jake/helpdm (diff) | |
parent | Added `python_community` and `partners` role havers to `!poll`. (diff) |
Merge pull request #1639 from python-discord/poll-for-partners
Allowing python community and partners to run !poll
-rw-r--r-- | bot/exts/utils/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py index 4c39a7c2a..3b8564aee 100644 --- a/bot/exts/utils/utils.py +++ b/bot/exts/utils/utils.py @@ -40,6 +40,7 @@ If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those! """ +LEADS_AND_COMMUNITY = (Roles.project_leads, Roles.domain_leads, Roles.partners, Roles.python_community) class Utils(Cog): @@ -185,7 +186,7 @@ class Utils(Cog): ) @command(aliases=("poll",)) - @has_any_role(*MODERATION_ROLES, Roles.project_leads, Roles.domain_leads) + @has_any_role(*MODERATION_ROLES, *LEADS_AND_COMMUNITY) async def vote(self, ctx: Context, title: clean_content(fix_channel_mentions=True), *options: str) -> None: """ Build a quick voting poll with matching reactions with the provided options. |