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

More v5 documentation #2296

Merged
merged 30 commits into from Nov 27, 2022
Merged

More v5 documentation #2296

merged 30 commits into from Nov 27, 2022

Conversation

Sanduhr32
Copy link
Contributor

Pull Request Etiquette

Changes

  • Internal code
  • Library interface (affecting end-user code)
  • Documentation
  • Other: _____

Closes Issue:

Description

Finally intorduces pending documentation for new v5 functionalities

@MinnDevelopment MinnDevelopment added the type: breaking contains a backwards incompatible change label Oct 24, 2022
@Sanduhr32
Copy link
Contributor Author

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
@Sanduhr32
Copy link
Contributor Author

Sanduhr32 commented Oct 30, 2022

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}.
Copy link
Member

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.

Copy link
Contributor Author

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

@Nullable
public ThreadMember getThreadMember()
{
return threadMember;
}

/**
* The interacting {@link ThreadMember} as a {@link Member GuildMember}.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* The interacting {@link ThreadMember} as a {@link Member GuildMember}.
* The interacting {@link ThreadMember} as a {@link Member}.

Copy link
Contributor Author

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

Copy link
Member

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}.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @return The interacting {@link ThreadMember} as a {@link Member GuildMember}.
* @return The interacting {@link ThreadMember} as a {@link Member}.

Comment on lines 51 to 52
* The joined {@link ThreadMember} as a {@link Member GuildMember}
* @return The joined {@link ThreadMember} as a {@link Member GuildMember}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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}.
Copy link
Member

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.

Sanduhr32 and others added 2 commits November 3, 2022 12:22
…ThreadMemberEvent.java

Co-authored-by: Florian Spieß <business@minn.dev>
…ThreadMemberEvent.java

Co-authored-by: Florian Spieß <business@minn.dev>
@Sanduhr32 Sanduhr32 requested review from DV8FromTheWorld and removed request for MinnDevelopment November 8, 2022 00:19
Sanduhr32 and others added 3 commits November 20, 2022 18:33
…emberLeaveEvent.java

Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
…cChannelUpdateEvent.java

Co-authored-by: Austin Keener <keeneraustin@yahoo.com>
Copy link
Contributor

@Chew Chew left a 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

@Sanduhr32
Copy link
Contributor Author

Makes no sense, that you take 2 ' away and add about 14 more of them.

@MinnDevelopment
Copy link
Member

MinnDevelopment commented Nov 23, 2022

@Sanduhr32 The use of it's is just wrong grammar

https://www.merriam-webster.com/words-at-play/when-to-use-its-vs-its

Copy link
Member

@DV8FromTheWorld DV8FromTheWorld left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants