Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,9 +486,11 @@ class Roles(metaclass=YAMLGetter):
admins: int
core_developers: int
devops: int
domain_leads: int
helpers: int
moderators: int
owners: int
project_leads: int

jammers: int
team_leaders: int
Expand Down
4 changes: 2 additions & 2 deletions bot/exts/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
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, Roles, STAFF_ROLES
from bot.converters import Snowflake
from bot.decorators import in_whitelist
from bot.pagination import LinePaginator
Expand Down Expand Up @@ -175,7 +175,7 @@ async def snowflake(self, ctx: Context, *snowflakes: Snowflake) -> None:
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.
Expand Down
2 changes: 2 additions & 0 deletions config-default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,11 @@ guild:
admins: &ADMINS_ROLE 267628507062992896
core_developers: 587606783669829632
devops: 409416496733880320
domain_leads: 807415650778742785
helpers: &HELPERS_ROLE 267630620367257601
moderators: &MODS_ROLE 267629731250176001
owners: &OWNERS_ROLE 267627879762755584
project_leads: 815701647526330398

# Code Jam
jammers: 737249140966162473
Expand Down