-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
feat: api v9 and threads #5570
feat: api v9 and threads #5570
Conversation
Can't wait to see this merged in v15 |
Lol yeah, looking forward to that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor things I think should be improved on as well as a few questions
753301a
to
092376f
Compare
You wouldn't get this from any other guy, but this needs a rebase <3 |
src/client/actions/ThreadListSync.js
Outdated
}); | ||
|
||
/** | ||
* Emitted whenever the client user gains access to a text or news channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description isn't accurate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What isn't accurate about this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
they're not text or news channels, they're thread channels :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the event is emitted when you gain access to the parent channel, being a text or news channel, even if there are no threads.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the event is emitted when you gain access to the parent channel, being a text or news channel, even if there are no threads.
The event is WHAT? So... when you get access to a channel, you now...get..an event...? But bots/users already know about all channels from the moment they connect...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
even if there are no threads.
rly? I think every place that sends it is checking if there are threads, how'd you reproduce it!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, cannot reproduce with no threads anymore. Although, it does seem weird to not sync threads when there were previously threads. E.g. if you have active threads, lose access to a channel, thread is marked archived, gain access to the channel. Since there is no THREAD_DELETE
fired here and we obviously don't get THREAD_UPDATE
while not having access to the channel, the cache is now out of date and doesn't get updated (in this case, removing the now archived threads
Co-authored-by: Amish Shah <dev@shah.gg>
Co-authored-by: Amish Shah <dev@shah.gg>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-Authored-By: SynthGhost <60333233+synthghost@users.noreply.github.com>
Co-Authored-By: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com>
Co-authored-by: Elliot <elliot@maisl.fr>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-Authored-By: SpaceEEC <24881032+SpaceEEC@users.noreply.github.com> Co-Authored-By: Antonio Román <kyradiscord@gmail.com>
Co-authored-by: Sugden <28943913+NotSugden@users.noreply.github.com> Co-authored-by: Vlad Frangu <kingdgrizzle@gmail.com>
Co-authored-by: Antonio Román <kyradiscord@gmail.com>
Rebased and added the new thing from api docs pr |
Woohoo, congrats! |
Lets go! Now I dont have to use private channels for my ticketing system |
Please describe the changes this PR makes and why it should be merged:
This is a very preliminary attempt at adding threads: discord/discord-api-docs#2855
Notes:
Feel free to make suggestions for major changes in this code, I am open to implementing this any different way.
Status and versioning classification: