mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 11:40:12 +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:
@@ -47,6 +47,12 @@ def feedback_command():
|
||||
).set_author(name="Feedback System", icon_url="https://yes.nighty.works/raw/gSxqzV.png")
|
||||
)
|
||||
else:
|
||||
await context.send("This command can only be used as a slash command. Please use `/general feedback` instead.")
|
||||
embed = discord.Embed(
|
||||
title="Error!",
|
||||
description="This command can only be used as a slash command. Please use `/general feedback` instead.",
|
||||
color=0xE02B2B,
|
||||
)
|
||||
embed.set_author(name="Feedback System", icon_url="https://yes.nighty.works/raw/gSxqzV.png")
|
||||
await context.send(embed=embed)
|
||||
|
||||
return feedback
|
||||
Reference in New Issue
Block a user