Swap server ID for name in send.

This commit is contained in:
Andrew 2023-09-28 15:54:56 -04:00
parent 13214e9e86
commit 9a88563916

View File

@ -171,8 +171,10 @@ class ApiServersServerWebhooksManagementIndexHandler(BaseApiHandler):
try:
webhook_provider = WebhookFactory.create_provider(webhook["webhook_type"])
webhook_provider.send(
server_name=server_id, # TODO get actual server name
title="Tickle Test Webhook",
server_name=self.controller.servers.get_server_data_by_id(server_id)[
"server_name"
],
title="Test Webhook",
url=webhook["url"],
message=webhook["body"],
color=4915409, # Prestigious purple!