feat(errorcodes): into json instead of py file

This commit is contained in:
neoarz
2025-09-23 21:56:26 -04:00
parent 9da3d935ae
commit 3c59dec58b
3 changed files with 355 additions and 77 deletions

View File

@@ -16,7 +16,7 @@ class ideviceSelect(discord.ui.Select):
discord.SelectOption(
label="Error Codes",
value="errorcodes_ephemeral",
description="Browse idevice error code slash commands",
description="Browse idevice error codes",
),
]
super().__init__(placeholder="Choose an idevice command...", options=options)
@@ -27,13 +27,12 @@ class ideviceSelect(discord.ui.Select):
if command_name == "errorcodes_ephemeral":
embed = discord.Embed(
title="Idevice Error Codes",
description="Use /errorcode to search errors by name or number.",
color=0xfa8c4a,
title="Command Executed",
description=f"Successfully executed `/{command_name}`",
color=0x00FF00
)
embed.set_author(name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
await interaction.response.edit_message(embed=embed, view=None)
await interaction.followup.send(embed=embed, ephemeral=True)
return
if command: