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

Some documentation on //todo-v5: docs #1838

Merged
merged 24 commits into from
Jan 19, 2022

Conversation

oliver276
Copy link
Contributor

I will take another look at all documentation here before I submit the PR for review. Sorry about the git history.

Not sure about the documentation on ChannelField, but other than the @see I'm not sure what else to do.

oliver276 and others added 7 commits September 2, 2021 12:33
A commit that moved many constants to the MAX_NAME_LENGTH mistakenly also moved a few values that were 100 into a constant with value 25.

This commit will add a new constant, MAX_NAME_OPTION_LENGTH, to fix those values back to their intended values of 100.
� Conflicts:
�	src/main/java/net/dv8tion/jda/api/interactions/commands/build/OptionData.java
@DV8FromTheWorld DV8FromTheWorld added the v5 defines that something is slated for inclusion in v5 label Nov 7, 2021
@DV8FromTheWorld DV8FromTheWorld deleted the branch discord-jda:master November 30, 2021 00:07
@DV8FromTheWorld DV8FromTheWorld changed the base branch from v5 to master November 30, 2021 00:20
…patch-1

� Conflicts:
�	src/main/java/net/dv8tion/jda/api/entities/BaseGuildMessageChannel.java
�	src/main/java/net/dv8tion/jda/api/entities/ChannelField.java
�	src/main/java/net/dv8tion/jda/api/entities/ICategorizableChannel.java
@Codixer
Copy link

Codixer commented Dec 2, 2021

@oliver276 / @DV8FromTheWorld
Any help needed on the documentation?

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.

Sorry it took so long. Loving the class-level documentation.

* <br>Adds additional functionality and information for text channels in Discord.
* Represents a standard Discord Text GuildChannel.
* <br>Adds additional functionality and information for text channels in Discord,
* on top of the common functionality present in other guild message channels.
Copy link
Member

Choose a reason for hiding this comment

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

As a note, the docs here and on NewsChannel are pretty wildly different. We might want to bring them in line with eachother.

* For example, if the bot is given the {@link net.dv8tion.jda.api.Permission.ADMINISTRATOR} permission, any thread channels that the bot could not previously see would be "revealed".
*
* @see ThreadHiddenEvent
*/
Copy link
Member

Choose a reason for hiding this comment

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

We need to double check and see if these events only fire if you were already in the channel or not. We need to document whether you need to be in the channel already or not to receive these events.

…patch-1

� Conflicts:
�	src/main/java/net/dv8tion/jda/api/entities/ThreadChannel.java
Comment on lines 46 to 53
/**
* Get the snowflake of the {@link Category} that contains this channel.
*
* @return The Discord ID snowflake of the parent channel as a String.
*/
default String getParentCategoryId()
{
return Long.toUnsignedString(getParentCategoryIdLong());
Copy link
Member

Choose a reason for hiding this comment

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

This actually should be nullable. We need to add the annotation and update the code to check for an idLong of 0 to return null instead.

Can be separate PR as long as we actually do it.

Copy link
Member

Choose a reason for hiding this comment

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

@oliver276 oliver276 marked this pull request as ready for review January 16, 2022 22:57
* @return The Discord ID snowflake of the parent channel as a long.
*/
long getParentCategoryIdLong();

/**
* Get the snowflake of the {@link Category} that contains this channel.
*
* This will return {@code 0} if this channel doesn't have a parent category.
Copy link
Member

Choose a reason for hiding this comment

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

This is not true as of #1993 which will probably cause some conflicts for you anyways.

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.

Almost done.

…patch-1

� Conflicts:
�	src/main/java/net/dv8tion/jda/api/entities/ICategorizableChannel.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation v5 defines that something is slated for inclusion in v5
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants