From 6dfebb79404b352316999d5a8b49bc78475461e0 Mon Sep 17 00:00:00 2001 From: chillymosh <86857777+chillymosh@users.noreply.github.com> Date: Fri, 10 Jan 2025 12:42:11 +0000 Subject: [PATCH] Add detail for eventsub deletion docstring --- twitchio/client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/twitchio/client.py b/twitchio/client.py index 9543c5b6..e26ffbcf 100644 --- a/twitchio/client.py +++ b/twitchio/client.py @@ -2393,6 +2393,8 @@ async def delete_eventsub_subscription(self, id: str, *, token_for: str | Partia id: str The ID of the eventsub subscription to delete. token_for: str | PartialUser | None + Do not pass this if you wish to delete webhook subscriptions, which are what usually require deleting. + For websocket subscriptions, provide the user ID, or PartialUser, associated with the subscription. """ @@ -2406,8 +2408,9 @@ async def delete_all_eventsub_subscriptions(self, *, token_for: str | PartialUse Parameters ---------- token_for: str | PartialUser | None - For websocket subscriptions, provide the user ID, or PartialUser, associated with the subscription. + Do not pass this if you wish to delete webhook subscriptions, which are what usually require deleting. + For websocket subscriptions, provide the user ID, or PartialUser, associated with the subscription. """ events = await self.fetch_eventsub_subscriptions(token_for=token_for) async for sub in events.subscriptions: