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
More v5 documentation #2296
More v5 documentation #2296
Conversation
src/main/java/net/dv8tion/jda/api/entities/channel/concrete/ThreadChannel.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/thread/member/ThreadMemberJoinEvent.java
Show resolved
Hide resolved
It's potentially breaking, because I removed a public attribute hopefully no-one uses right? |
# Conflicts: # src/main/java/net/dv8tion/jda/internal/entities/ThreadMemberImpl.java
src/main/java/net/dv8tion/jda/api/entities/channel/concrete/ThreadChannel.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
> that todo comment is outdated i think > getters should be fine already ~ Minn
…d.java Co-authored-by: Florian Spieß <business@minn.dev>
All i have left todo, is figuring out when the ThreadMemberJoin event is fired (and received by JDA) |
@@ -25,7 +25,15 @@ | |||
import javax.annotation.Nonnull; | |||
import javax.annotation.Nullable; | |||
|
|||
//TODO-v5: Docs | |||
/** | |||
* Indicates that a {@link Member GuildMember} interacted with a {@link ThreadChannel} as a {@link ThreadMember}. |
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.
Interacted seems like a strange wording here, can't a member also be added by someone else (private threads) without "interacting"? Especially problematic because "interaction" is a defined term for a specific API.
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.
I rephrased it similar to the GenericGuildMember event
src/main/java/net/dv8tion/jda/api/events/thread/member/GenericThreadMemberEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/thread/member/GenericThreadMemberEvent.java
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/thread/member/GenericThreadMemberEvent.java
Outdated
Show resolved
Hide resolved
@Nullable | ||
public ThreadMember getThreadMember() | ||
{ | ||
return threadMember; | ||
} | ||
|
||
/** | ||
* The interacting {@link ThreadMember} as a {@link Member GuildMember}. |
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.
* The interacting {@link ThreadMember} as a {@link Member GuildMember}. | |
* The interacting {@link ThreadMember} as a {@link Member}. |
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.
I explicitly called it "guild member" for clarification
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.
Yeah, its less clear in my opinion as it looks like a different type. Maybe do guild {@link Member}
instead?
/** | ||
* The interacting {@link ThreadMember} as a {@link Member GuildMember}. | ||
* | ||
* @return The interacting {@link ThreadMember} as a {@link Member GuildMember}. |
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.
* @return The interacting {@link ThreadMember} as a {@link Member GuildMember}. | |
* @return The interacting {@link ThreadMember} as a {@link Member}. |
* The joined {@link ThreadMember} as a {@link Member GuildMember} | ||
* @return The joined {@link ThreadMember} as a {@link Member GuildMember} |
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.
* The joined {@link ThreadMember} as a {@link Member GuildMember} | |
* @return The joined {@link ThreadMember} as a {@link Member GuildMember} | |
* The joined {@link ThreadMember} as a {@link Member} | |
* @return The joined {@link ThreadMember} as a {@link Member} |
import net.dv8tion.jda.api.entities.ThreadMember; | ||
import net.dv8tion.jda.api.entities.channel.concrete.ThreadChannel; | ||
|
||
import javax.annotation.Nonnull; | ||
|
||
//TODO-v5: Docs | ||
/** | ||
* Indicates that a {@link Member GuildMember} left a {@link ThreadChannel}. |
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.
Please stop using "GuildMember" everywhere, it looks like an actual type in the docs if you read this and only confuses the reader more.
…ThreadMemberEvent.java Co-authored-by: Florian Spieß <business@minn.dev>
…ThreadMemberEvent.java Co-authored-by: Florian Spieß <business@minn.dev>
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateTypeEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/GenericChannelUpdateEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/thread/member/ThreadMemberLeaveEvent.java
Outdated
Show resolved
Hide resolved
…emberLeaveEvent.java Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
…cChannelUpdateEvent.java Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
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.
I giveth and taketh apostrophes away
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateArchiveTimestampEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateArchivedEvent.java
Outdated
Show resolved
Hide resolved
...in/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateAutoArchiveDurationEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateSlowmodeEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateTopicEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateTypeEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/channel/update/ChannelUpdateUserLimitEvent.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/events/thread/member/ThreadMemberJoinEvent.java
Outdated
Show resolved
Hide resolved
Makes no sense, that you take 2 |
@Sanduhr32 The use of https://www.merriam-webster.com/words-at-play/when-to-use-its-vs-its |
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.
LGTM
Pull Request Etiquette
Changes
Closes Issue:
Description
Finally intorduces pending documentation for new v5 functionalities