Skip to content

Commit

Permalink
modify comment and CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
howard-at-cb committed Jan 11, 2025
1 parent d3c2d01 commit 9c3ea28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions cdp/webhook.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand Down

0 comments on commit 9c3ea28

Please sign in to comment.