Renamed function #178
This commit is contained in:
parent
00b4e2ab66
commit
17b336623d
@ -36,7 +36,7 @@ class BaseOnMessageDeleteEvent(OnMessageDeleteABC):
|
|||||||
self._clients = clients
|
self._clients = clients
|
||||||
self._servers = servers
|
self._servers = servers
|
||||||
|
|
||||||
def _append_received_message_count(self, g_id: int):
|
def _append_deleted_message_count(self, g_id: int):
|
||||||
try:
|
try:
|
||||||
self._clients.append_deleted_message_count(self._bot.user.id, g_id, 1)
|
self._clients.append_deleted_message_count(self._bot.user.id, g_id, 1)
|
||||||
self._db.save_changes()
|
self._db.save_changes()
|
||||||
@ -76,7 +76,7 @@ class BaseOnMessageDeleteEvent(OnMessageDeleteABC):
|
|||||||
return
|
return
|
||||||
|
|
||||||
self._logger.info(__name__, f'Received message: {LogMessageHelper.get_log_string(message)}')
|
self._logger.info(__name__, f'Received message: {LogMessageHelper.get_log_string(message)}')
|
||||||
self._append_received_message_count(message.guild.id)
|
self._append_deleted_message_count(message.guild.id)
|
||||||
|
|
||||||
if not message.author.bot:
|
if not message.author.bot:
|
||||||
self._handle_message_delete(message)
|
self._handle_message_delete(message)
|
||||||
|
Loading…
Reference in New Issue
Block a user