mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
fix(hackban): was looking for str instead of int rip
Enhanced the feedback command's error response to use an embed for better user experience. Changed the 'user_id' parameter type from int to str in hackban commands to support non-integer user IDs.
This commit is contained in:
@@ -63,7 +63,7 @@ class Moderation(commands.GroupCog, name="moderation"):
|
||||
await self._invoke_hybrid(context, "archive", limit=limit)
|
||||
|
||||
@moderation_group.command(name="hackban")
|
||||
async def moderation_group_hackban(self, context: Context, user_id: int, *, reason: str = "Not specified"):
|
||||
async def moderation_group_hackban(self, context: Context, user_id: str, *, reason: str = "Not specified"):
|
||||
await self._invoke_hybrid(context, "hackban", user_id=user_id, reason=reason)
|
||||
|
||||
@moderation_group.command(name="nick")
|
||||
@@ -115,7 +115,7 @@ class Moderation(commands.GroupCog, name="moderation"):
|
||||
name="hackban",
|
||||
description="Bans a user without the user having to be in the server."
|
||||
)
|
||||
async def hackban(self, context, user_id: int, *, reason: str = "Not specified"):
|
||||
async def hackban(self, context, user_id: str, *, reason: str = "Not specified"):
|
||||
return await hackban_command()(self, context, user_id=user_id, reason=reason)
|
||||
|
||||
@commands.check(_require_group_prefix)
|
||||
|
||||
Reference in New Issue
Block a user