aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Den4200 <[email protected]>2020-09-19 20:31:26 -0400
committerGravatar Den4200 <[email protected]>2020-09-19 20:31:26 -0400
commit24b788d11bec461718b540d5d9fec2785afa5d23 (patch)
treeb764659917fa8e703e1a9daa75425839a007f789
parentMerge pull request #444 from python-discord/greedy-issues (diff)
Allow `issue` command in #dev-branding
-rw-r--r--bot/constants.py1
-rw-r--r--bot/exts/evergreen/issues.py7
2 files changed, 6 insertions, 2 deletions
diff --git a/bot/constants.py b/bot/constants.py
index 6605882d..fa428a61 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -52,6 +52,7 @@ class Channels(NamedTuple):
devalerts = 460181980097675264
devlog = int(environ.get("CHANNEL_DEVLOG", 622895325144940554))
dev_contrib = 635950537262759947
+ dev_branding = 753252897059373066
help_0 = 303906576991780866
help_1 = 303906556754395136
help_2 = 303906514266226689
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index d909ae6e..97baac6a 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -21,9 +21,12 @@ class Issues(commands.Cog):
self.bot = bot
@commands.command(aliases=("pr",))
- @override_in_channel(WHITELISTED_CHANNELS + (Channels.dev_contrib,))
+ @override_in_channel(WHITELISTED_CHANNELS + (Channels.dev_contrib, Channels.dev_branding))
async def issue(
- self, ctx: commands.Context, numbers: commands.Greedy[int], repository: str = "seasonalbot",
+ self,
+ ctx: commands.Context,
+ numbers: commands.Greedy[int],
+ repository: str = "seasonalbot",
user: str = "python-discord"
) -> None:
"""Command to retrieve issue(s) from a GitHub repository."""