forked from DiscordBots/lilJudd
fix: fixed AvailabilityManager not being able to set the right roles
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
213cb45d6c
commit
c663641e42
2 changed files with 1 additions and 2 deletions
|
@ -180,7 +180,6 @@ object AvailabilityManager : IFeature {
|
||||||
}.count() > 0
|
}.count() > 0
|
||||||
}
|
}
|
||||||
if (!alreadyExists) {
|
if (!alreadyExists) {
|
||||||
|
|
||||||
// Create the roles in Discord
|
// Create the roles in Discord
|
||||||
val hasTimeRole = Bot.bot.kordRef.getGuildOrThrow(Snowflake(gID)).createRole {
|
val hasTimeRole = Bot.bot.kordRef.getGuildOrThrow(Snowflake(gID)).createRole {
|
||||||
this.name = "available [${ch.data.name.value}]"
|
this.name = "available [${ch.data.name.value}]"
|
||||||
|
|
|
@ -154,7 +154,7 @@ object TimeManager : IFeature {
|
||||||
it[TimePlanningMessages.channelid] = c.id.value.toString()
|
it[TimePlanningMessages.channelid] = c.id.value.toString()
|
||||||
it[TimePlanningMessages.weekstamp] = TimeUtil.getWeekStamp().toOffsetDateTime().toString()
|
it[TimePlanningMessages.weekstamp] = TimeUtil.getWeekStamp().toOffsetDateTime().toString()
|
||||||
it[TimePlanningMessages.messageids] = msgStr
|
it[TimePlanningMessages.messageids] = msgStr
|
||||||
} get PlanningNotifierRoles.id
|
} get TimePlanningMessages.id
|
||||||
}
|
}
|
||||||
Logger.out("Finished with ${c.data.guildId.value}")
|
Logger.out("Finished with ${c.data.guildId.value}")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue