Skip to content

Commit

Permalink
Fix docs of cache rest action usage (#2677)
Browse files Browse the repository at this point in the history
  • Loading branch information
TecToast committed May 9, 2024
1 parent 994713b commit b2010f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/net/dv8tion/jda/api/entities/Guild.java
Original file line number Diff line number Diff line change
Expand Up @@ -2803,7 +2803,7 @@ default Task<List<Member>> findMembersWithRoles(@Nonnull Role... roles)
* <br>If the member is already loaded it will be retrieved from {@link #getMemberById(long)}
* and immediately provided if the member information is consistent. The cache consistency directly
* relies on the enabled {@link GatewayIntent GatewayIntents} as {@link GatewayIntent#GUILD_MEMBERS GatewayIntent.GUILD_MEMBERS}
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(true)} to always
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(false)} to always
* make a new request, which is the default behavior if the required intents are disabled.
*
* <p>Possible {@link net.dv8tion.jda.api.exceptions.ErrorResponseException ErrorResponseExceptions} include:
Expand Down Expand Up @@ -2841,7 +2841,7 @@ default CacheRestAction<Member> retrieveMember(@Nonnull UserSnowflake user)
* <br>If the member is already loaded it will be retrieved from {@link #getMemberById(long)}
* and immediately provided if the member information is consistent. The cache consistency directly
* relies on the enabled {@link GatewayIntent GatewayIntents} as {@link GatewayIntent#GUILD_MEMBERS GatewayIntent.GUILD_MEMBERS}
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(true)} to always
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(false)} to always
* make a new request, which is the default behavior if the required intents are disabled.
*
* <p>Possible {@link net.dv8tion.jda.api.exceptions.ErrorResponseException ErrorResponseExceptions} include:
Expand Down Expand Up @@ -2873,7 +2873,7 @@ default CacheRestAction<Member> retrieveOwner()
* <br>If the member is already loaded it will be retrieved from {@link #getMemberById(long)}
* and immediately provided if the member information is consistent. The cache consistency directly
* relies on the enabled {@link GatewayIntent GatewayIntents} as {@link GatewayIntent#GUILD_MEMBERS GatewayIntent.GUILD_MEMBERS}
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(true)} to always
* is required to keep the cache updated with the latest information. You can use {@link CacheRestAction#useCache(boolean) useCache(false)} to always
* make a new request, which is the default behavior if the required intents are disabled.
*
* <p>Possible {@link net.dv8tion.jda.api.exceptions.ErrorResponseException ErrorResponseExceptions} include:
Expand Down

0 comments on commit b2010f3

Please sign in to comment.