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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
2 deletions
-
disco/api/client.py
-
disco/types/message.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={ |
|
|
|
@ -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): |
|
|
""" |
|
|
""" |
|
|