fixes jellyfin empty string message on library update (#30)
This commit is contained in:
2
run.py
2
run.py
@@ -248,7 +248,7 @@ async def setupplexlibs(interaction: discord.Interaction, libraries:str):
|
|||||||
@jellyfin_commands.command(name="setuplibs", description="Setup libraries that new users can access")
|
@jellyfin_commands.command(name="setuplibs", description="Setup libraries that new users can access")
|
||||||
@app_commands.checks.has_permissions(administrator=True)
|
@app_commands.checks.has_permissions(administrator=True)
|
||||||
async def setupjellylibs(interaction: discord.Interaction, libraries:str):
|
async def setupjellylibs(interaction: discord.Interaction, libraries:str):
|
||||||
if not libraries is None:
|
if not libraries:
|
||||||
await embederror(interaction.response, "libraries string is empty.")
|
await embederror(interaction.response, "libraries string is empty.")
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user