aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar swfarnsworth <[email protected]>2021-06-14 11:05:19 -0400
committerGravatar swfarnsworth <[email protected]>2021-06-14 11:05:19 -0400
commit211b228000bf43cc703a6bbe60b63e3160a4f0f4 (patch)
treed551ff15e97ed9528e86b18e7b5321cc6d258a07
parentModified the proposed message after discussion in yesterday's staff meeting. (diff)
parentMerge pull request #1639 from python-discord/poll-for-partners (diff)
Merge branch 'main' of https://github.com/python-discord/bot into swfarnsworth/help_channel_message
-rw-r--r--bot/exts/utils/utils.py3
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.