JDA
JDA copied to clipboard
Add newly_created field to ThreadChannel
Pull Request Etiquette
- [x] I have checked the PRs for upcoming features/bug fixes.
- [x] I have read the contributing guidelines.
Changes
- [x] Internal code
- [ ] Library interface (affecting end-user code)
- [ ] Documentation
- [ ] Other: _____
Closes Issue: N/A
Description
Adds a new method isNewlyCreated to ThreadChannel so you can differenciate when a ThreadChannel is created or if the self member joined the thread
Isn't this field only applicable to CHANNEL_CREATE events? I don't think it makes much sense to put that on the actual channel entity, when its primarily used to distinguish events.
It is yes. Would a seperate event for THREAD_CREATE events be better or a method on the ChannelCreateEvent which throws if it's not for a thread, or any other suggestions you may have
I'm gonna need to read up more on how we'd use this, but this definitely should not be on the entity itself.
Superseded by https://github.com/DV8FromTheWorld/JDA/pull/2254