Skip to content

Commit 6993353

Browse files
authored
Merge pull request #159 from hackthebox/feature/new-events
New Events Patch
2 parents 935f310 + 14cec6f commit 6993353

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/webhooks/handlers/account.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ async def handle(self, body: WebhookBody, bot: Bot):
2424
return await self._handle_account_deleted(body, bot)
2525
elif body.event == WebhookEvent.ACCOUNT_BANNED:
2626
return await self._handle_account_banned(body, bot)
27+
elif body.event == WebhookEvent.NAME_CHANGE:
28+
return await self._handle_name_change(body, bot)
2729
else:
2830
raise ValueError(f"Invalid event: {body.event}")
2931

0 commit comments

Comments
 (0)