Skip to content

Commit

Permalink
add permissions to sector_17_29
Browse files Browse the repository at this point in the history
  • Loading branch information
rtk-rnjn committed Sep 28, 2023
1 parent fd4c2bc commit 6b6de6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_commands/sector_17_29/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ async def sector_17_29_about(self, ctx: Context):

@sector_17_29.command(name="general", aliases=["generalchat", "general_chat", "gc"])
@commands.cooldown(1, 600, commands.BucketType.guild)
@commands.has_any_role(SERVER_MOD, CORE_MAINTAINER_ROLE)
async def sector_17_29_general_chat(self, ctx: Context, name: str):
"""Change the name of general chat."""
emoji = "\N{SPEECH BALLOON}"
Expand All @@ -409,6 +410,7 @@ async def sector_17_29_general_chat(self, ctx: Context, name: str):

@sector_17_29.command(name="rainbow", aliases=["rainbowrole", "rainbow_role", "rr"])
@commands.cooldown(1, 600, commands.BucketType.guild)
# @commands.has_any_role(SERVER_MOD, CORE_MAINTAINER_ROLE)
async def sector_17_29_rainbow_role(self, ctx: Context, *, color: str):
"""Change the name of rainbow role."""
role: discord.Role | None = self.bot.server.get_role(RAINBOW_ROLE)
Expand Down

0 comments on commit 6b6de6e

Please sign in to comment.