NPE When getting message's channel
Tested using
onMessageCreate {
message.reply("_")?.react(UnicodeEmoji.WhiteFlower)
}
The NPE is coming up because of the !!
in Message#getChannel
getChannel() = getData().getChannel()!!.lazyEntity
but the problem lies in how the cache retrieves and returns new values.
Edited by JonoAugustine