Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientException: Parent channel not found #2564

Closed
sentry-io bot opened this issue Apr 27, 2023 · 3 comments
Closed

ClientException: Parent channel not found #2564

sentry-io bot opened this issue Apr 27, 2023 · 3 comments
Labels
a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority s: planning Discussing details t: bug Something isn't working

Comments

@sentry-io
Copy link

sentry-io bot commented Apr 27, 2023

Sentry Issue: BOT-3FW

ClientException: Parent channel not found
(1 additional frame(s) were not displayed)
...
  File "bot/exts/moderation/clean.py", line 645, in purge
    await self._clean_messages(ctx, channels="*", users=users, first_limit=age)
  File "bot/exts/moderation/clean.py", line 404, in _clean_messages
    deletion_channels = self._channels_set(channels, ctx, first_limit, second_limit)
  File "bot/exts/moderation/clean.py", line 135, in _channels_set
    channels = {
  File "bot/exts/moderation/clean.py", line 139, in <setcomp>
    and channel.permissions_for(ctx.guild.default_role).view_channel

Error executing command invoked by {{redacted_user}}: !purge {{redacted_user_id}} 1d
@shtlrs
Copy link
Member

shtlrs commented Apr 27, 2023

@shtlrs shtlrs added t: bug Something isn't working a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority up for grabs Available for anyone to work on status: approved The issue has received a core developer's approval labels May 10, 2023
@wookie184 wookie184 added s: planning Discussing details and removed up for grabs Available for anyone to work on status: approved The issue has received a core developer's approval labels Apr 14, 2024
@wookie184
Copy link
Contributor

Seems to be because the channel was deleted but this didn't remove the thread from guild.threads.

Reported as an issue in discord.py: Rapptz/discord.py#9795, we should be able to close this when the linked PR there is merged.

@wookie184
Copy link
Contributor

Upstream issue was fixed so should be sorted in the next discord.py release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: moderation Related to community moderation functionality: (moderation, defcon, verification) p: 3 - low Low Priority s: planning Discussing details t: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants