aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/core/source.py
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2022-02-20 11:29:20 +0000
committerGravatar Izan <[email protected]>2022-02-20 11:29:20 +0000
commite232b7c4a870da800cbb40f2d5fbd0af8084be1f (patch)
tree75262960566ab049653ce70176b77b73c0e2fee2 /bot/exts/core/source.py
parentMerge remote-tracking branch 'origin/main' into main (diff)
parentAllow `.src` in dev-contrib and community-meta (#1033) (diff)
Merge remote-tracking branch 'origin/main' into main
Diffstat (limited to 'bot/exts/core/source.py')
-rw-r--r--bot/exts/core/source.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/core/source.py b/bot/exts/core/source.py
index 7572ce51..e9568933 100644
--- a/bot/exts/core/source.py
+++ b/bot/exts/core/source.py
@@ -6,14 +6,16 @@ from discord import Embed
from discord.ext import commands
from bot.bot import Bot
-from bot.constants import Source
+from bot.constants import Channels, Source, WHITELISTED_CHANNELS
from bot.utils.converters import SourceConverter, SourceType
+from bot.utils.decorators import whitelist_override
class BotSource(commands.Cog):
"""Displays information about the bot's source code."""
@commands.command(name="source", aliases=("src",))
+ @whitelist_override(channels=WHITELISTED_CHANNELS+[Channels.community_meta, Channels.dev_contrib])
async def source_command(self, ctx: commands.Context, *, source_item: SourceConverter = None) -> None:
"""Display information and a GitHub link to the source code of a command, tag, or cog."""
if not source_item: