Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 4d53d57

Browse files
author
Andreas Sas
committed
Feat: delete_eventsub_subscription
1 parent b604070 commit 4d53d57

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/AthenaTwitchBot/models/twitch_api/twitch_api.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -779,8 +779,17 @@ async def create_eventsub_subscription(
779779

780780
# ------------------------------------------------------------------------------------------------------------------
781781
@connected_to_twitch
782-
async def delete_eventsub_subscription(self):
783-
return NotImplemented
782+
async def delete_eventsub_subscription(
783+
self, id_:str
784+
):
785+
return await self._request(
786+
callback=requests.delete,
787+
url=TwitchApiURL.eventsub_subscriptions.value,
788+
headers=self._header_json,
789+
query_parameters={
790+
"id": id_
791+
}
792+
)
784793

785794
# ------------------------------------------------------------------------------------------------------------------
786795
@connected_to_twitch

0 commit comments

Comments
 (0)