refactor
This commit is contained in:
1 parent
9c8da6ab7b
commit
0145383dfd
1 file changed
+1
-1
+1
-1
@@ -70,7 +70,7 @@ public class MusicPlayerAutoDisconnect implements ScheduledTask {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Instant idleStart = idleSince.computeIfAbsent(guildId, id -> Instant.now());
|
Instant idleStart = idleSince.computeIfAbsent(guildId, _ -> Instant.now());
|
||||||
long idleMinutes = Duration.between(idleStart, Instant.now()).toMinutes();
|
long idleMinutes = Duration.between(idleStart, Instant.now()).toMinutes();
|
||||||
long timeoutMinutes = getIdleTimeoutMinutes(manager);
|
long timeoutMinutes = getIdleTimeoutMinutes(manager);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user