mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-20 09:56:05 -05:00
Use mod/admin_or_permissions instead of just mod/admin. (#4109)
* Update modcheck. * _or_permissions for set nickname & serverprefix
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user