Skip to content

Commit

Permalink
Add missing annotations on ThreadChannel (#2274)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinnDevelopment authored Oct 7, 2022
1 parent a128a89 commit ded34dd
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ default ThreadMember getSelfThreadMember()
* @see #retrieveThreadMember(Member)
*/
@Nullable
default ThreadMember getThreadMember(Member member)
default ThreadMember getThreadMember(@Nonnull Member member)
{
Checks.notNull(member, "Member");
return getThreadMemberById(member.getId());
Expand All @@ -309,7 +309,7 @@ default ThreadMember getThreadMember(Member member)
* @see #retrieveThreadMember(Member)
*/
@Nullable
default ThreadMember getThreadMember(User user)
default ThreadMember getThreadMember(@Nonnull User user)
{
Checks.notNull(user, "User");
return getThreadMemberById(user.getId());
Expand All @@ -334,7 +334,7 @@ default ThreadMember getThreadMember(User user)
* @see #retrieveThreadMember(Member)
*/
@Nullable
default ThreadMember getThreadMemberById(String id)
default ThreadMember getThreadMemberById(@Nonnull String id)
{
return getThreadMemberById(MiscUtil.parseSnowflake(id));
}
Expand Down Expand Up @@ -545,6 +545,7 @@ default ThreadMember getOwnerThreadMember()
*
* @see ChannelField#ARCHIVED_TIMESTAMP
*/
@Nonnull
OffsetDateTime getTimeArchiveInfoLastModified();

/**
Expand Down Expand Up @@ -594,6 +595,7 @@ default ThreadMember getOwnerThreadMember()
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
RestAction<Void> join();

Expand All @@ -616,6 +618,7 @@ default ThreadMember getOwnerThreadMember()
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
RestAction<Void> leave();

Expand Down Expand Up @@ -656,6 +659,7 @@ default ThreadMember getOwnerThreadMember()
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
RestAction<Void> addThreadMemberById(long id);

Expand Down Expand Up @@ -696,6 +700,7 @@ default ThreadMember getOwnerThreadMember()
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> addThreadMemberById(@Nonnull String id)
{
Expand Down Expand Up @@ -732,6 +737,7 @@ default RestAction<Void> addThreadMemberById(@Nonnull String id)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> addThreadMember(@Nonnull User user)
{
Expand Down Expand Up @@ -769,6 +775,7 @@ default RestAction<Void> addThreadMember(@Nonnull User user)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> addThreadMember(@Nonnull Member member)
{
Expand Down Expand Up @@ -808,6 +815,7 @@ default RestAction<Void> addThreadMember(@Nonnull Member member)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
RestAction<Void> removeThreadMemberById(long id);

Expand Down Expand Up @@ -845,6 +853,7 @@ default RestAction<Void> addThreadMember(@Nonnull Member member)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> removeThreadMemberById(@Nonnull String id)
{
Expand Down Expand Up @@ -879,6 +888,7 @@ default RestAction<Void> removeThreadMemberById(@Nonnull String id)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> removeThreadMember(@Nonnull User user)
{
Expand Down Expand Up @@ -914,6 +924,7 @@ default RestAction<Void> removeThreadMember(@Nonnull User user)
*
* @return {@link RestAction}
*/
@Nonnull
@CheckReturnValue
default RestAction<Void> removeThreadMember(@Nonnull Member member)
{
Expand Down

0 comments on commit ded34dd

Please sign in to comment.