fix bug for forbidden channel
This commit is contained in:
@@ -70,6 +70,7 @@ class ChannelLogs:
|
||||
yield len(self.messages), False
|
||||
self.last_message_id = channel.last_message_id
|
||||
except discord.errors.HTTPException:
|
||||
yield -1, True
|
||||
return # When an exception occurs (like Forbidden)
|
||||
yield len(self.messages), True
|
||||
|
||||
|
||||
@@ -154,7 +154,7 @@ class GuildLogs:
|
||||
workers += [Worker(self.channels[channel.id], channel)]
|
||||
warning_msg = "(this might take a while)"
|
||||
if len(target_channels) > 5 and loading_new > 5:
|
||||
warning_msg = "(most channels are new, this might take a looong while)"
|
||||
warning_msg = "(most channels are new, this will take a long while)"
|
||||
elif loading_new > 0:
|
||||
warning_msg = "(some channels are new, this might take a long while)"
|
||||
await code_message(
|
||||
|
||||
Reference in New Issue
Block a user