Random ArrayIndexOutOfBoundsException when getting messages
Hi, I'm sometimes getting the following stacktrace error in a function of mine:
Is there anything you guys can change about that? I looked a bit into it and it seems like that's not really an issue in Kord, but I'm not too sure
3 Replies
I'm simply using
val message = textChannel.messages.firstOrNull { it.author?.isSelf() == true }
on textChannel: GuildMessageChannel
if you guys need more examples for this stacktrace lmk - Im getting that error at random times ever since I implemented it (but it seemed like a random 1/100 chance, so I ignored it for a while)@Taubsie an off-by-one, haven't seen that yet. Which version?
newest through kord extensions.. so 0.16.0