feat: improved isEmpty check

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-29 11:14:13 +02:00
parent 196bb378b4
commit d92396784e

View file

@ -88,7 +88,7 @@ object AvailabilityManager : IFeature {
continue // This channel does not exist anymore.
val c =
Bot.bot.kordRef.getChannelOf<MessageChannel>(Snowflake(data.channelid))!! // Get the channel as MessageChannel
if (roleMap.size < 1) {
if (roleMap.isEmpty()) {
Logger.out("No saved roles. Canceling.")
return
}