From e3ac78f97bd6ac0a2f29b295614a44a7cb65e370 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 8 Dec 2021 07:49:52 +0100 Subject: [PATCH] Fixed argument error --- src/gismo_core/service/message_service.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gismo_core/service/message_service.py b/src/gismo_core/service/message_service.py index a4156d3..b86a712 100644 --- a/src/gismo_core/service/message_service.py +++ b/src/gismo_core/service/message_service.py @@ -39,7 +39,7 @@ class MessageService(MessageServiceABC): except Exception as e: self._logger.error(__name__, f'Deleting message failed', e) else: - self._clients.apppend_deleted_message_count(self._bot.user.id, guild_id) + self._clients.apppend_deleted_message_count(self._bot.user.id, guild_id, 1) self._db.save_changes() self._logger.info(__name__, f'Deleted message {message}') @@ -52,7 +52,7 @@ class MessageService(MessageServiceABC): self._logger.error(__name__, f'Send message to channel {channel.id} failed', e) else: self._logger.info(__name__, f'Sent message to channel {channel.id}') - self._clients.apppend_sent_message_count(self._bot.user.id, channel.guild.id) + self._clients.apppend_sent_message_count(self._bot.user.id, channel.guild.id, 1) self._db.save_changes() await self.delete_message(msg) @@ -63,7 +63,7 @@ class MessageService(MessageServiceABC): except Exception as e: self._logger.error(__name__, f'Send message to user {receiver.id} failed', e) else: - self._clients.apppend_sent_message_count(self._bot.user.id, receiver.guild.id) + self._clients.apppend_sent_message_count(self._bot.user.id, receiver.guild.id, 1) self._db.save_changes() self._logger.info(__name__, f'Sent message to user {receiver.id}') @@ -84,6 +84,6 @@ class MessageService(MessageServiceABC): self._logger.error(__name__, f'Send message to channel {ctx.channel.id} failed', e) else: self._logger.info(__name__, f'Sent message to channel {ctx.channel.id}') - self._clients.apppend_sent_message_count(self._bot.user.id, ctx.guild.id) + self._clients.apppend_sent_message_count(self._bot.user.id, ctx.guild.id, 1) self._db.save_changes() await self.delete_message(msg)