Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
📝 Docs update + removed debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthurdw committed Oct 14, 2021
1 parent 52b574f commit 10300ce
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 0 additions & 1 deletion pincer/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ async def __add_commands(self):
to Discord!
"""
to_add = ChatCommandHandler.register
print(to_add.keys(), list(map(lambda x: x.name, self._api_commands)))

for reg_cmd in self._api_commands:
try:
Expand Down
1 change: 0 additions & 1 deletion pincer/middleware/message_create.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ async def message_create_middleware(self, payload: GatewayDispatch):
:param payload:
The data received from the message creation event.
"""
return "on_message", [
UserMessage.from_dict(
Expand Down
11 changes: 11 additions & 0 deletions pincer/middleware/message_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@


async def message_update_middleware(self, payload: GatewayDispatch):
"""
Middleware for ``on_message_update`` event,
generate a class for the message that has been updated.
:param self:
The current client.
:param payload:
The data received from the message update event.
"""
return "on_message_update", [
UserMessage.from_dict(
{"_client": self, "_http": self.http, **payload.data}
Expand Down

0 comments on commit 10300ce

Please sign in to comment.