diff --git a/main.py b/main.py index a43a979..baea6ec 100644 --- a/main.py +++ b/main.py @@ -28,7 +28,7 @@ - **nologo** 🚫 : Specifies whether to remove the logo from the generated images (deafault False) - **private** 🔒 : when set to True the generated Image will only be visible to you """, - " 🎨": """Generates AI Images using all available models + " 🎨": """Generates AI Images using all available models - **prompt** 🗣️ : Your prompt for the Image to be generated - **width** ↔️ : The width of your prompted Image - **height** ↕️ : The height of your prompted Image diff --git a/utils.py b/utils.py index 5aa2531..87e1819 100644 --- a/utils.py +++ b/utils.py @@ -47,12 +47,15 @@ "https://i.giphy.com/tXL4FHPSnVJ0A.gif", ] + class PromptTooLongError(discord.app_commands.AppCommandError): pass + class DimensionTooSmallError(discord.app_commands.AppCommandError): pass + def get_prompt_data(message_id: int): try: return prompts.find_one({"_id": message_id})