aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2020-09-21 20:54:56 -0400
committerGravatar Den4200 <[email protected]>2020-09-21 20:54:56 -0400
commit00f4e909070adb7916ff25cf8c772c404a50d329 (patch)
tree4ffd3c58b056f168e7eeb1277d6afe12f298b775
parentMerge branch 'master' into sebastiaan/bugs/duckpond (diff)
Use `has_any_role` decorator instead of old `with_role` decorator
-rw-r--r--bot/exts/fun/duck_pond.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/duck_pond.py b/bot/exts/fun/duck_pond.py
index 2758de8ab..6c2d22b9c 100644
--- a/bot/exts/fun/duck_pond.py
+++ b/bot/exts/fun/duck_pond.py
@@ -8,7 +8,7 @@ from discord.ext.commands import Cog, Context, command
from bot import constants
from bot.bot import Bot
-from bot.decorators import with_role
+from bot.utils.checks import has_any_role
from bot.utils.messages import send_attachments
from bot.utils.webhooks import send_webhook
@@ -185,7 +185,7 @@ class DuckPond(Cog):
await message.add_reaction("✅")
@command(name="duckify", aliases=("duckpond", "pondify"))
- @with_role(constants.Roles.admins)
+ @has_any_role(constants.Roles.admins)
async def duckify(self, ctx: Context, message: discord.Message) -> None:
"""Relay a message to the duckpond, no ducks required!"""
if await self.locked_relay(message):