hikari
hikari copied to clipboard
Threads
Summary
Threads
Checklist
- [ ] I have run
nox
and all the pipelines have passed. - [ ] I have made unittests according to the code I have added/modified/deleted.
Related issues
A thread member cache store isn't feasible for the initial implementation as this'd require a decided upon strategy for pre-loading cache resources over REST otherwise the thread member stores for most threads will be incomplete.
More consideration probably has to be put into how archived threads are handled in the cache since the docs suggest these don't get synced like active threads.
Currently the thread cache is not reliable as it cannot account for losing access to seeing threads due to permission changes
~~audit log entry types~~
~~message endpoints need thread_id~~
~~Replace the deprecated GET /channels/{channel.id}/threads/active
endpoint with GET /guilds/{guild.id}/threads/active
~~
~~https://github.com/discord/discord-api-docs/pull/3998~~
~~Check for HAS_THREAD message flag~~
Apart from conflicts and open conversations, LGMT
Thanks a lot for investing the time and working on this @FasterSpeeding. Greatly appreciated
A few return types have to be updated to PermissibleGuildChannel:
-
hikari.Guild.get_channel()
-
hikari.Guild.get_channels()
-
hikari.GuildChannelEvent.get_channel()
-
hikari.GuildMessageCreateEvent.get_channel()
,hikari.GuildMessageUpdateEvent.get_channel()
,hikari.GuildMessageDeleteEvent.get_channel()
(not sure about these, but they use cache.get_guild_channel which returns a PermissibleGuildChannel) -
hikari.GuildTypingEvent.get_channel()
Apart from merge conflicts, what else is missing from this PR? I have time to work on it in the next couple of days @FasterSpeeding
Apart from merge conflicts, what else is missing from this PR? I have time to work on it in the next couple of days @FasterSpeeding
I'm also up for finishing this PR. The state of this PR is not looking good right now.
I think we probably need an implementation of Forum Channels which would be based upon this PR later. However, Discord says it's still being documented.
I think we probably need an implementation of Forum Channels which would be based upon this PR later. However, Discord says it's still being documented.
That can be done in a separate pr + forum channels are not fully out yet + they have breaking changes in some endpoints
What is the current status of this PR? Just enquiring as it seems to be inactive, not sure where it's at right now.
What is the current status of this PR? Just enquiring as it seems to be inactive, not sure where it's at right now.
The review needs to be resolved I think. It’s basically finished besides a couple of things