Use mod/admin_or_permissions instead of just mod/admin. (#4109)

* Update modcheck.

* _or_permissions for set nickname & serverprefix
This commit is contained in:
Jamie
2020-07-29 00:38:19 +01:00
committed by GitHub
parent 57247c5d87
commit 260a2d5c78
2 changed files with 5 additions and 5 deletions

View File

@@ -273,7 +273,7 @@ class Streams(commands.Cog):
@commands.group()
@commands.guild_only()
@checks.mod()
@checks.mod_or_permissions(manage_channels=True)
async def streamalert(self, ctx: commands.Context):
"""Manage automated stream alerts."""
pass
@@ -419,9 +419,9 @@ class Streams(commands.Cog):
await self.add_or_remove(ctx, stream)
@commands.group()
@checks.mod()
@checks.mod_or_permissions(manage_channels=True)
async def streamset(self, ctx: commands.Context):
"""Set tokens for accessing streams."""
"""Manage stream alert settings."""
pass
@streamset.command(name="timer")