-
-
Notifications
You must be signed in to change notification settings - Fork 727
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
Conversation
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
…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
… at the top of the class
@oliver276 / @DV8FromTheWorld |
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.
Sorry it took so long. Loving the class-level documentation.
src/main/java/net/dv8tion/jda/api/entities/BaseGuildMessageChannel.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/entities/IPositionableChannel.java
Outdated
Show resolved
Hide resolved
* <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. |
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.
As a note, the docs here and on NewsChannel are pretty wildly different. We might want to bring them in line with eachother.
src/main/java/net/dv8tion/jda/api/events/thread/ThreadHiddenEvent.java
Outdated
Show resolved
Hide resolved
* 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 | ||
*/ |
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.
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.
src/main/java/net/dv8tion/jda/api/entities/IThreadContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/entities/IThreadContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/entities/IThreadContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/entities/IThreadContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/entities/IThreadContainer.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
…patch-1 � Conflicts: � src/main/java/net/dv8tion/jda/api/entities/ThreadChannel.java
/** | ||
* 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()); |
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.
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.
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.
src/main/java/net/dv8tion/jda/api/entities/ICategorizableChannel.java
Outdated
Show resolved
Hide resolved
src/main/java/net/dv8tion/jda/api/managers/channel/concrete/ThreadChannelManager.java
Outdated
Show resolved
Hide resolved
* @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. |
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.
This is not true as of #1993 which will probably cause some conflicts for you anyways.
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.
Almost done.
…patch-1 � Conflicts: � src/main/java/net/dv8tion/jda/api/entities/ICategorizableChannel.java
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.