Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Aug 19, 2024
1 parent 51f5ab1 commit 66a16a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class TicketListener(private val helper: LorittaHelper) {
return

val channelId = event.message.channel.idLong
val channel = helper.jda.getChannel<ThreadChannel>(channelId) ?: return
val channel = helper.jda.getThreadChannelById(channelId) ?: return
if (channel.isPublic)
return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class TicketsCache(
suspend fun populateCache() {
mutex.withLock {
val guild = jda.getGuildById(guildId)!!
val channel = guild.getChannel<TextChannel>(channelId)!!
val channel = guild.getTextChannelById(channelId)!!

// Populate cache with the active threads
guild
Expand Down

0 comments on commit 66a16a2

Please sign in to comment.