We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c35889 commit da82db9Copy full SHA for da82db9
1 file changed
bot/exts/moderation/clean.py
@@ -136,8 +136,9 @@ def _channels_set(
136
channels = {
137
channel for channel in itertools.chain(ctx.guild.channels, ctx.guild.threads)
138
if isinstance(channel, TextChannel | Thread)
139
- # Assume that non-public channels are not needed to optimize for speed.
+ # Ignore non-public channels or ones that can't be written in to optimize for speed.
140
and channel.permissions_for(ctx.guild.default_role).view_channel
141
+ and channel.permissions_for(ctx.guild.default_role).send_messages
142
}
143
else:
144
channels = set(channels)
0 commit comments