fix: off-by-one error in EmbedUtil #4

Merged
moonleay merged 1 commit from Cookieso/lilJudd:master into master 2023-12-06 17:14:08 +00:00
Showing only changes of commit 373eb15805 - Show all commits

View file

@ -82,7 +82,7 @@ object EmbedUtil {
fun getAllUsersInTheFirstXTables(amountOfTables: Int, e: Embed): List<String> {
val users = mutableListOf<String>()
for (i in 0 until amountOfTables - 1) {
for (i in 0 until amountOfTables) {
val f = e.fields[i]
if (!f.value.contains("@"))
continue // check next one. this one does not have any entries