forked from DiscordBots/lilJudd
feat: improved isEmpty check
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
196bb378b4
commit
d92396784e
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ object AvailabilityManager : IFeature {
|
||||||
continue // This channel does not exist anymore.
|
continue // This channel does not exist anymore.
|
||||||
val c =
|
val c =
|
||||||
Bot.bot.kordRef.getChannelOf<MessageChannel>(Snowflake(data.channelid))!! // Get the channel as MessageChannel
|
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.")
|
Logger.out("No saved roles. Canceling.")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue