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

Threads in deleted channels not removed from cache #9795

Closed
3 tasks done
wookie184 opened this issue Apr 19, 2024 · 0 comments · Fixed by #9796
Closed
3 tasks done

Threads in deleted channels not removed from cache #9795

wookie184 opened this issue Apr 19, 2024 · 0 comments · Fixed by #9796
Labels
bug This is a bug with the library.

Comments

@wookie184
Copy link

Summary

When a channel is deleted, any threads in that channel will remain in guild.threads

Reproduction Steps

  1. Create a thread in a channel
  2. See that the thread is in guild.threads
  3. Delete the channel containing the thread
  4. See that the thread is still in guild.threads

Minimal Reproducible Code

import asyncio
channel = await guild.create_text_channel("random-channel")
thread = await channel.create_thread(name="my-thread")
print(thread in guild.threads)
await channel.delete()
await asyncio.sleep(3)
print(thread in guild.threads)

Expected Results

True
False

Actual Results

True
True

Intents

All apart from these: presences, invites, webhooks, integrations, and dm typing/reactions

System Information

- Python v3.12.1-final
- discord.py v2.3.2-final
- aiohttp v3.9.4

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

Additional Context

No response

@wookie184 wookie184 added the unconfirmed bug A bug report that needs triaging label Apr 19, 2024
@Rapptz Rapptz added bug This is a bug with the library. and removed unconfirmed bug A bug report that needs triaging labels Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This is a bug with the library.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants