aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bot/constants.py2
-rw-r--r--bot/exts/utils/utils.py4
-rw-r--r--config-default.yml2
3 files changed, 6 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 467a4a2c4..787e8b12e 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -487,6 +487,8 @@ class Roles(metaclass=YAMLGetter):
voice_verified: int
admins: int
+ domain_leads: int
+ project_leads: int
core_developers: int
devops: int
helpers: int
diff --git a/bot/exts/utils/utils.py b/bot/exts/utils/utils.py
index a5d6f69b9..c45f73b88 100644
--- a/bot/exts/utils/utils.py
+++ b/bot/exts/utils/utils.py
@@ -9,7 +9,7 @@ from discord.ext.commands import BadArgument, Cog, Context, clean_content, comma
from discord.utils import snowflake_time
from bot.bot import Bot
-from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES
+from bot.constants import Channels, MODERATION_ROLES, STAFF_ROLES, Roles
from bot.converters import Snowflake
from bot.decorators import in_whitelist
from bot.pagination import LinePaginator
@@ -175,7 +175,7 @@ class Utils(Cog):
await ctx.send(embed=embed)
@command(aliases=("poll",))
- @has_any_role(*MODERATION_ROLES)
+ @has_any_role(*MODERATION_ROLES, Roles.project_leads, Roles.domain_leads)
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.
diff --git a/config-default.yml b/config-default.yml
index 502f0f861..dde7e48e1 100644
--- a/config-default.yml
+++ b/config-default.yml
@@ -263,6 +263,8 @@ guild:
# Staff
admins: &ADMINS_ROLE 267628507062992896
+ domain_leads: 807415650778742785
+ project_leads: 807415650778742785
core_developers: 587606783669829632
devops: 409416496733880320
helpers: &HELPERS_ROLE 267630620367257601