Skip to content

Commit 45dc449

Browse files
Duuedchillymosh
andauthored
Add more user-friendly aliases to rtfx commands.
* Update manuals.py Added aliases rtfd and docs to rtfm command Added alias source to rtfs command * Black formatting --------- Co-authored-by: Chillymosh <chillymosh@gmail.com>
1 parent 7b37405 commit 45dc449

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/manuals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def _smart_guess_lib(self, ctx: core.Context) -> LibEnum | None:
101101
brief="Searches documentation",
102102
short_doc="Searches relevant documentation for the given input.",
103103
signature="[library]? [query]",
104+
aliases=["docs", "rtfd"],
104105
)
105106
@commands.dynamic_cooldown(_cooldown_bucket, commands.BucketType.member) # type: ignore
106107
async def rtfm(self, ctx: core.Context, *, query: str) -> None:
@@ -200,6 +201,7 @@ async def rtfm(self, ctx: core.Context, *, query: str) -> None:
200201
brief="Searches source files",
201202
short_doc="Searches relevant library source for the given input.",
202203
signature="[library]? [query]",
204+
aliases=["source"],
203205
)
204206
@commands.dynamic_cooldown(_cooldown_bucket, commands.BucketType.member) # type: ignore
205207
async def rtfs(self, ctx: core.Context, *, query: str) -> None:

0 commit comments

Comments
 (0)