lower retry limit

This commit is contained in:
Lee 2024-07-06 06:24:53 +01:00
parent 514f4757a9
commit f7aba7a49b
2 changed files with 2 additions and 2 deletions

@ -19,7 +19,7 @@ public class ChannelUtils {
* @return the user with the given id * @return the user with the given id
*/ */
private static TextChannel getTextChannel(String id, int retries) { private static TextChannel getTextChannel(String id, int retries) {
if (retries >= 25) { if (retries >= 10) {
log.error("Failed to find user \"{}\" after {} retries.", id, retries); log.error("Failed to find user \"{}\" after {} retries.", id, retries);
return null; return null;
} }

@ -19,7 +19,7 @@ public class UserUtils {
* @return the user with the given id * @return the user with the given id
*/ */
private static User getUser(String id, int retries) { private static User getUser(String id, int retries) {
if (retries >= 25) { if (retries >= 10) {
log.error("Failed to find user \"{}\" after {} retries.", id, retries); log.error("Failed to find user \"{}\" after {} retries.", id, retries);
return null; return null;
} }