Skip to content

Commit

Permalink
Fix NPE on ThreadChannelDelete (#373)
Browse files Browse the repository at this point in the history
  • Loading branch information
en-you authored Aug 26, 2021
1 parent a6ed033 commit 67637c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/kotlin/gateway/handler/ThreadEventHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class ThreadEventHandler(
is ChannelType.PublicNewsThread -> NewsChannelThreadDeleteEvent(channel, old as? NewsChannelThread, shard)
is ChannelType.PrivateThread,
is ChannelType.GuildText -> TextChannelThreadDeleteEvent(channel, old as? TextChannelThread, shard)
else -> UnknownChannelThreadDeleteEvent(channel, old as ThreadChannel, shard)
else -> UnknownChannelThreadDeleteEvent(channel, old as? ThreadChannel, shard)
}
coreFlow.emit(coreEvent)

Expand Down Expand Up @@ -118,4 +118,4 @@ class ThreadEventHandler(
val coreEvent = ThreadMembersUpdateEvent(data, kord, shard)
coreFlow.emit(coreEvent)
}
}
}

0 comments on commit 67637c5

Please sign in to comment.