From 46b804834a1eaaf420f3d04b486fba814ffc5732 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Thu, 5 Jan 2023 09:43:27 +0000 Subject: [PATCH] Fix embed being required in webhook --- app/tasks/webhooktasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/tasks/webhooktasks.py b/app/tasks/webhooktasks.py index 7c4f216d..e810fcaa 100644 --- a/app/tasks/webhooktasks.py +++ b/app/tasks/webhooktasks.py @@ -22,7 +22,7 @@ from app.models import User from app.tasks import celery @celery.task() -def post_discord_webhook(username: Optional[str], content: str, is_queue: bool, title: Optional[str], description: Optional[str], thumbnail: Optional[str]): +def post_discord_webhook(username: Optional[str], content: str, is_queue: bool, title: Optional[str] = None, description: Optional[str] = None, thumbnail: Optional[str] = None): discord_url = app.config.get("DISCORD_WEBHOOK_QUEUE" if is_queue else "DISCORD_WEBHOOK_FEED") if discord_url is None: return