aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2020-12-04 14:46:58 +0100
committerGravatar GitHub <[email protected]>2020-12-04 14:46:58 +0100
commit72f869a81d882acf2eb3f1714d4f52d01384b0ae (patch)
treecd520dabb48bc090d37ca077222258459401ff9f
parentMerge PR #1214 - Gracefully handle socket.gaierro in AsyncStatsClient (diff)
Add the `s` alias to `infraction search`
-rw-r--r--bot/exts/moderation/infraction/management.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/moderation/infraction/management.py b/bot/exts/moderation/infraction/management.py
index c58410f8c..b3783cd60 100644
--- a/bot/exts/moderation/infraction/management.py
+++ b/bot/exts/moderation/infraction/management.py
@@ -197,7 +197,7 @@ class ModManagement(commands.Cog):
# endregion
# region: Search infractions
- @infraction_group.group(name="search", invoke_without_command=True)
+ @infraction_group.group(name="search", aliases=('s',), invoke_without_command=True)
async def infraction_search_group(self, ctx: Context, query: t.Union[UserMention, Snowflake, str]) -> None:
"""Searches for infractions in the database."""
if isinstance(query, int):