feat(bot): ✨ Add support for me in user command arguments.

This commit is contained in:
Nyeki.py
2024-10-19 23:46:35 -03:00
parent 6023e0dc0a
commit 92468b83fe
+3
View File
@@ -44,6 +44,9 @@ class DiscordUserID(converter.Converter):
"""Converts a URL, ID, or reply into a Discord User ID."""
async def convert(self, ctx: commands.Context, argument: str) -> int:
if argument.lower() == "me":
return ctx.author.id
if argument.isdecimal() and len(argument) in range(17, 20):
return int(argument)