fix User.kt

- fun enable fix
This commit is contained in:
dalbodeule 2024-08-08 20:26:02 +09:00
parent 0f175ab045
commit a6cd5ba8b5
No known key found for this signature in database
GPG Key ID: EFA860D069C9FA65

View File

@ -38,7 +38,7 @@ object ChzzkHandler {
fun enable() {
botUid = chzzk.loggedUser.userId
UserService.getAllUsers().map {
chzzk.getChannel(it.token)?.let { token -> addUser(token, it) }
chzzk.getChannel(it.token ?: "")?.let { token -> addUser(token, it) }
}
handlers.forEach { handler ->