fix: fixed AvailabilityManager not being able to set the right roles

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-07-13 00:58:43 +02:00
parent 213cb45d6c
commit c663641e42
2 changed files with 1 additions and 2 deletions

View file

@ -180,7 +180,6 @@ object AvailabilityManager : IFeature {
}.count() > 0
}
if (!alreadyExists) {
// Create the roles in Discord
val hasTimeRole = Bot.bot.kordRef.getGuildOrThrow(Snowflake(gID)).createRole {
this.name = "available [${ch.data.name.value}]"

View file

@ -154,7 +154,7 @@ object TimeManager : IFeature {
it[TimePlanningMessages.channelid] = c.id.value.toString()
it[TimePlanningMessages.weekstamp] = TimeUtil.getWeekStamp().toOffsetDateTime().toString()
it[TimePlanningMessages.messageids] = msgStr
} get PlanningNotifierRoles.id
} get TimePlanningMessages.id
}
Logger.out("Finished with ${c.data.guildId.value}")
}