File tree 1 file changed +3
-2
lines changed
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):
175
175
print ('Mode: Selfhosting logs.' )
176
176
print (line )
177
177
print (Fore .CYAN + 'Connected to gateway.' )
178
+
178
179
await self .config .refresh ()
179
180
180
181
activity_type = self .config .get ('activity_type' )
@@ -202,7 +203,6 @@ async def on_ready(self):
202
203
print (Fore .RED + Style .BRIGHT + 'WARNING - The GUILD_ID provided does not exist!' + Style .RESET_ALL )
203
204
else :
204
205
await self .threads .populate_cache ()
205
- await self .config .update ()
206
206
207
207
closures = self .config .closures .copy ()
208
208
@@ -233,6 +233,7 @@ async def on_ready(self):
233
233
message = items ['message' ]
234
234
)
235
235
)
236
+
236
237
237
238
async def process_modmail (self , message ):
238
239
"""Processes messages sent to the bot."""
@@ -338,7 +339,7 @@ async def on_guild_channel_delete(self, channel):
338
339
entry = await audit_logs .find (lambda e : e .target .id == channel .id )
339
340
mod = entry .user
340
341
341
- if mod . bot :
342
+ if mod == self . user :
342
343
return
343
344
344
345
thread = await self .threads .find (channel = channel )
You can’t perform that action at this time.
0 commit comments