forked from SteamWar/SteamWar
Fix CouncilChannel
Update JDA to 6.4.1
This commit is contained in:
@@ -25,6 +25,7 @@ import org.jetbrains.exposed.v1.core.dao.id.EntityID
|
||||
import org.jetbrains.exposed.v1.core.dao.id.IntIdTable
|
||||
import org.jetbrains.exposed.v1.core.eq
|
||||
import org.jetbrains.exposed.v1.core.inList
|
||||
import org.jetbrains.exposed.v1.core.neq
|
||||
import org.jetbrains.exposed.v1.dao.IntEntity
|
||||
import org.jetbrains.exposed.v1.dao.IntEntityClass
|
||||
import org.jetbrains.exposed.v1.jdbc.insert
|
||||
@@ -136,6 +137,12 @@ class SteamwarUser(id: EntityID<Int>) : IntEntity(id) {
|
||||
.select(SteamwarUserTable.fields).where { UserPermTable.perm eq perm }.map { wrapRow(it) }
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getUsersWithDiscordId() =
|
||||
useDb {
|
||||
find { SteamwarUserTable.discordId neq null }.toList()
|
||||
}
|
||||
|
||||
@JvmStatic
|
||||
fun getServerTeam() =
|
||||
useDb {
|
||||
|
||||
Reference in New Issue
Block a user