forked from DiscordBots/lilJudd
fix: off-by-one error in EmbedUtil
This commit is contained in:
parent
05d2d1a6b9
commit
0bf527b6e0
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ object EmbedUtil {
|
||||||
|
|
||||||
fun getAllUsersInTheFirstXTables(amountOfTables: Int, e: Embed): List<String> {
|
fun getAllUsersInTheFirstXTables(amountOfTables: Int, e: Embed): List<String> {
|
||||||
val users = mutableListOf<String>()
|
val users = mutableListOf<String>()
|
||||||
for (i in 0 until amountOfTables - 1) {
|
for (i in 0 until amountOfTables) {
|
||||||
val f = e.fields[i]
|
val f = e.fields[i]
|
||||||
if (!f.value.contains("@"))
|
if (!f.value.contains("@"))
|
||||||
continue // check next one. this one does not have any entries
|
continue // check next one. this one does not have any entries
|
||||||
|
|
Loading…
Reference in a new issue