aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SomeHybrid <[email protected]>2023-09-02 10:53:35 +0700
committerGravatar GitHub <[email protected]>2023-09-02 03:53:35 +0000
commit032b6ba7f020dee610edee3ddcfdaa518973a46c (patch)
treec49f58e37ac2db0cde4429151ee7c7b3b32301e6
parentBump pydis-core from 10.1.0 to 10.2.0 (#1352) (diff)
Allow the `.rfc` command in all channels (#1356)
-rw-r--r--bot/exts/utilities/rfc.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/utilities/rfc.py b/bot/exts/utilities/rfc.py
index d9840592..f1bbfb89 100644
--- a/bot/exts/utilities/rfc.py
+++ b/bot/exts/utilities/rfc.py
@@ -6,7 +6,8 @@ from discord import Embed
from discord.ext import commands
from bot.bot import Bot
-from bot.constants import Colours
+from bot.constants import Colours, Roles
+from bot.utils.decorators import whitelist_override
logger = logging.getLogger(__name__)
@@ -61,6 +62,8 @@ class Rfc(commands.Cog):
@commands.cooldown(1, 5, commands.BucketType.user)
@commands.command()
+ @commands.guild_only()
+ @whitelist_override(roles=(Roles.everyone,))
async def rfc(self, ctx: commands.Context, rfc_id: int) -> None:
"""Sends the corresponding RFC with the given ID."""
document = await self.retrieve_data(rfc_id)