From 032b6ba7f020dee610edee3ddcfdaa518973a46c Mon Sep 17 00:00:00 2001 From: SomeHybrid <91648368+SomeHybrid@users.noreply.github.com> Date: Sat, 2 Sep 2023 10:53:35 +0700 Subject: Allow the `.rfc` command in all channels (#1356) --- bot/exts/utilities/rfc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bot/exts/utilities/rfc.py') 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) -- cgit v1.2.3