File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,7 @@ async def on_connect(self):
175175 print ('Mode: Selfhosting logs.' )
176176 print (line )
177177 print (Fore .CYAN + 'Connected to gateway.' )
178+
178179 await self .config .refresh ()
179180
180181 activity_type = self .config .get ('activity_type' )
@@ -202,7 +203,6 @@ async def on_ready(self):
202203 print (Fore .RED + Style .BRIGHT + 'WARNING - The GUILD_ID provided does not exist!' + Style .RESET_ALL )
203204 else :
204205 await self .threads .populate_cache ()
205- await self .config .update ()
206206
207207 closures = self .config .closures .copy ()
208208
@@ -233,6 +233,7 @@ async def on_ready(self):
233233 message = items ['message' ]
234234 )
235235 )
236+
236237
237238 async def process_modmail (self , message ):
238239 """Processes messages sent to the bot."""
@@ -338,7 +339,7 @@ async def on_guild_channel_delete(self, channel):
338339 entry = await audit_logs .find (lambda e : e .target .id == channel .id )
339340 mod = entry .user
340341
341- if mod . bot :
342+ if mod == self . user :
342343 return
343344
344345 thread = await self .threads .find (channel = channel )
You can’t perform that action at this time.
0 commit comments