mirror of
https://github.com/neoarz/Syntrel.git
synced 2025-12-25 03:40:11 +01:00
chore: ruff formatting
This commit is contained in:
@@ -7,36 +7,41 @@ import time
|
||||
|
||||
def noapps_command():
|
||||
@commands.hybrid_command(
|
||||
name="noapps", description="Help when apps aren't showing in installed apps view"
|
||||
name="noapps",
|
||||
description="Help when apps aren't showing in installed apps view",
|
||||
)
|
||||
async def noapps(self, context):
|
||||
embed = discord.Embed(
|
||||
color=0xfa8c4a,
|
||||
color=0xFA8C4A,
|
||||
description=(
|
||||
'# Apps Not Showing in Installed Apps View\n\n---\n\n' +
|
||||
'If apps aren\'t appearing in the StikDebug installed apps view, this is likely because they were signed with a distribution certificate instead of a development certificate.\n\n' +
|
||||
'Distribution certificates lack the `get-task-allow` entitlement needed for JIT.\n\n' +
|
||||
'To fix this issue:\n' +
|
||||
'- Use a development certificate when signing apps, or\n' +
|
||||
'- Try SideStore, the best free sideloading method available\n\n' +
|
||||
'More details can be found at [SideStore\'s official website](https://sidestore.io/)'
|
||||
)
|
||||
"# Apps Not Showing in Installed Apps View\n\n---\n\n"
|
||||
+ "If apps aren't appearing in the StikDebug installed apps view, this is likely because they were signed with a distribution certificate instead of a development certificate.\n\n"
|
||||
+ "Distribution certificates lack the `get-task-allow` entitlement needed for JIT.\n\n"
|
||||
+ "To fix this issue:\n"
|
||||
+ "- Use a development certificate when signing apps, or\n"
|
||||
+ "- Try SideStore, the best free sideloading method available\n\n"
|
||||
+ "More details can be found at [SideStore's official website](https://sidestore.io/)"
|
||||
),
|
||||
)
|
||||
embed.set_author(name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png")
|
||||
embed.set_footer(text=f'Last Edited by neoarz')
|
||||
embed.set_author(
|
||||
name="idevice", icon_url="https://yes.nighty.works/raw/snLMuO.png"
|
||||
)
|
||||
embed.set_footer(text=f"Last Edited by neoarz")
|
||||
embed.timestamp = discord.utils.utcnow()
|
||||
|
||||
view = discord.ui.View()
|
||||
view.add_item(discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/idevice/noapps.py",
|
||||
emoji="<:githubicon:1417717356846776340>"
|
||||
))
|
||||
view.add_item(
|
||||
discord.ui.Button(
|
||||
label="Edit Command",
|
||||
style=discord.ButtonStyle.secondary,
|
||||
url="https://github.com/neoarz/Syntrel/blob/main/cogs/idevice/noapps.py",
|
||||
emoji="<:githubicon:1417717356846776340>",
|
||||
)
|
||||
)
|
||||
|
||||
if context.interaction:
|
||||
await context.interaction.response.send_message(embed=embed, view=view)
|
||||
else:
|
||||
await context.send(embed=embed, view=view)
|
||||
|
||||
|
||||
return noapps
|
||||
|
||||
Reference in New Issue
Block a user