Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entitlements parsers and dispatchers #17

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions discord/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,18 @@ def parse_auto_moderation_action_execution(self, data) -> None:
event = AutoModActionExecutionEvent(self, data)
self.dispatch("auto_moderation_action_execution", event)

def parse_entitlement_create(self, data) -> None:
# event = Entitlement(data=data, state=self)
self.dispatch("entitlement_create", data)

def parse_entitlement_update(self, data) -> None:
# event = Entitlement(data=data, state=self)
self.dispatch("entitlement_update", data)

def parse_entitlement_delete(self, data) -> None:
# event = Entitlement(data=data, state=self)
self.dispatch("entitlement_delete", data)

def parse_message_create(self, data) -> None:
channel, _ = self._get_guild_channel(data)
# channel would be the correct type here
Expand Down
Loading