@@ -224,12 +224,16 @@ async def snooze(self, moderator=None, command_used=None, snooze_for=None):
224224 "author_name" : (
225225 getattr (m .embeds [0 ].author , "name" , "" ).split (" (" )[0 ]
226226 if m .embeds and m .embeds [0 ].author and m .author == self .bot .user
227- else getattr (m .author , "name" , None ) if m .author != self .bot .user else None
227+ else getattr (m .author , "name" , None )
228+ if m .author != self .bot .user
229+ else None
228230 ),
229231 "author_avatar" : (
230232 getattr (m .embeds [0 ].author , "icon_url" , None )
231233 if m .embeds and m .embeds [0 ].author and m .author == self .bot .user
232- else m .author .display_avatar .url if m .author != self .bot .user else None
234+ else m .author .display_avatar .url
235+ if m .author != self .bot .user
236+ else None
233237 ),
234238 }
235239 async for m in channel .history (limit = None , oldest_first = True )
@@ -254,7 +258,7 @@ async def snooze(self, moderator=None, command_used=None, snooze_for=None):
254258 import logging
255259
256260 logging .info (f"[SNOOZE] DB update result: { result .modified_count } " )
257-
261+
258262 # Dispatch thread_snoozed event for plugins
259263 self .bot .dispatch ("thread_snoozed" , self , moderator , snooze_for )
260264
@@ -749,7 +753,7 @@ async def _ensure_genesis(force: bool = False):
749753
750754 # Mark unsnooze as complete
751755 self ._unsnoozing = False
752-
756+
753757 # Dispatch thread_unsnoozed event for plugins
754758 self .bot .dispatch ("thread_unsnoozed" , self )
755759
0 commit comments