Browse Source

Apply suggestions from code review

Co-Authored-By: LMByrne <11181703+LMByrne@users.noreply.github.com>
pull/136/head
Andrei Zbikowski 6 years ago
committed by GitHub
parent
commit
e0e22e3d2a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      disco/api/client.py
  2. 3
      disco/types/message.py

2
disco/api/client.py

@ -233,7 +233,7 @@ class APIClient(LoggingClass):
route = Routes.CHANNELS_MESSAGES_REACTIONS_DELETE_ALL route = Routes.CHANNELS_MESSAGES_REACTIONS_DELETE_ALL
obj = dict(channel=channel, message=message) obj = dict(channel=channel, message=message)
self.http(route, obj) self.http(Routes.CHANNEL_MESSAGES_REACTIONS_DELETE_ALL, dict(channel=channel, message=message))
def channels_permissions_modify(self, channel, permission, allow, deny, typ, reason=None): def channels_permissions_modify(self, channel, permission, allow, deny, typ, reason=None):
self.http(Routes.CHANNELS_PERMISSIONS_MODIFY, dict(channel=channel, permission=permission), json={ self.http(Routes.CHANNELS_PERMISSIONS_MODIFY, dict(channel=channel, permission=permission), json={

3
disco/types/message.py

@ -515,7 +515,8 @@ class Message(SlottedModel):
""" """
self.client.api.channels_messages_reactions_delete_all( self.client.api.channels_messages_reactions_delete_all(
self.channel_id, self.channel_id,
self.id) self.id,
)
def is_mentioned(self, entity): def is_mentioned(self, entity):
""" """

Loading…
Cancel
Save