From e0e22e3d2ab7f138e05507017f83122e29968d62 Mon Sep 17 00:00:00 2001 From: Andrei Zbikowski Date: Thu, 2 May 2019 01:12:02 +0100 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: LMByrne <11181703+LMByrne@users.noreply.github.com> --- disco/api/client.py | 2 +- disco/types/message.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/disco/api/client.py b/disco/api/client.py index 45e8b13..d98d42e 100644 --- a/disco/api/client.py +++ b/disco/api/client.py @@ -233,7 +233,7 @@ class APIClient(LoggingClass): route = Routes.CHANNELS_MESSAGES_REACTIONS_DELETE_ALL 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): self.http(Routes.CHANNELS_PERMISSIONS_MODIFY, dict(channel=channel, permission=permission), json={ diff --git a/disco/types/message.py b/disco/types/message.py index 350b429..01b020c 100644 --- a/disco/types/message.py +++ b/disco/types/message.py @@ -515,7 +515,8 @@ class Message(SlottedModel): """ self.client.api.channels_messages_reactions_delete_all( self.channel_id, - self.id) + self.id, + ) def is_mentioned(self, entity): """