forked from Fascinated/Bat
lower retry limit
This commit is contained in:
parent
514f4757a9
commit
f7aba7a49b
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user