diff --git a/CHANGELOG.md b/CHANGELOG.md index c1f2656..2aaea89 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## [0.14.0] - 2025-01-16 ### Added -- Add `Webhook.delete` instance method to delete a webhook instance. +- Add `Webhook.delete_webhook` instance method to delete a webhook instance. ### Deprecated - Deprecate `Webhook.delete` static method in `Webhook` which deletes a webhook by its ID. diff --git a/cdp/webhook.py b/cdp/webhook.py index 565b421..d713d7e 100644 --- a/cdp/webhook.py +++ b/cdp/webhook.py @@ -150,11 +150,11 @@ def delete(webhook_id: str) -> None: Deprecated: This static method is deprecated. Please use the instance method instead: - webhook_instance.delete() + webhook_instance.delete_webhook() """ warnings.warn( - "This static method is deprecated. Please use the instance method instead: webhook_instance.delete()", + "This static method is deprecated. Please use the instance method instead: webhook_instance.delete_webhook()", DeprecationWarning, stacklevel=2, )