fix(bot): 🐛 Discord user converter not working.
This commit is contained in:
@@ -44,12 +44,12 @@ 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 len(argument) > 17 and argument[2:-1].isdecimal():
|
||||
return int()
|
||||
|
||||
if argument.isdecimal() and len(argument) in range(17, 20):
|
||||
return int(argument)
|
||||
|
||||
if len(argument) > 17 and argument[2:-1].isdecimal():
|
||||
return int(argument)
|
||||
|
||||
if argument.startswith("https://discord.com/users/") or argument.startswith(
|
||||
"discord://-/users/"
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user