aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2020-04-03 19:34:20 +0300
committerGravatar ks129 <[email protected]>2020-04-03 19:34:20 +0300
commit54606cd8f20197c39cff264972aaa4a34e47ca53 (patch)
treed4344c2e5af2a00863aeedd73121eacca0e0ff44
parent(Utils, discord.py 1.3.x Migrations): Replaced `help` command getting with `c... (diff)
(Mod Management, discord.py 1.3.x Migrations): Replaced `help` command getting with `ctx.send_help`, replaced `ctx.invoke` with direct command call.
-rw-r--r--bot/cogs/moderation/management.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/cogs/moderation/management.py b/bot/cogs/moderation/management.py
index 250a24247..075d45e2d 100644
--- a/bot/cogs/moderation/management.py
+++ b/bot/cogs/moderation/management.py
@@ -43,7 +43,7 @@ class ModManagement(commands.Cog):
@commands.group(name='infraction', aliases=('infr', 'infractions', 'inf'), invoke_without_command=True)
async def infraction_group(self, ctx: Context) -> None:
"""Infraction manipulation commands."""
- await ctx.invoke(self.bot.get_command("help"), "infraction")
+ await ctx.send_help("infraction")
@infraction_group.command(name='edit')
async def infraction_edit(
@@ -183,9 +183,9 @@ class ModManagement(commands.Cog):
async def infraction_search_group(self, ctx: Context, query: InfractionSearchQuery) -> None:
"""Searches for infractions in the database."""
if isinstance(query, discord.User):
- await ctx.invoke(self.search_user, query)
+ await self.search_user(ctx, query)
else:
- await ctx.invoke(self.search_reason, query)
+ await self.search_reason(ctx, query)
@infraction_search_group.command(name="user", aliases=("member", "id"))
async def search_user(self, ctx: Context, user: t.Union[discord.User, proxy_user]) -> None: