diff options
author | 2022-05-09 18:21:21 +0200 | |
---|---|---|
committer | 2022-05-09 18:21:21 +0200 | |
commit | 019983c3785191a0c7182c62394cec2bac123d51 (patch) | |
tree | 54c296bd04a13a0097cbd7249b78a6716556d735 /bot/exts/core/source.py | |
parent | Doublefixed indentation and removed unused import. (diff) | |
parent | Bump pillow from 9.0.0 to 9.0.1 (#1045) (diff) |
Merge branch 'main' into uwu
Diffstat (limited to 'bot/exts/core/source.py')
-rw-r--r-- | bot/exts/core/source.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/core/source.py b/bot/exts/core/source.py index 7572ce51..2801be0f 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: |