Skip to content

Commit

Permalink
Fix GuildUpdate core handling (kordlib#284)
Browse files Browse the repository at this point in the history
* Expose the creation of application commands behavior

* Fix type of emitted event
  • Loading branch information
HopeBaron authored and DRSchlaubi committed Jun 7, 2021
1 parent 71fe9c1 commit e8d99ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/kotlin/gateway/handler/GuildEventHandler.kt
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ internal class GuildEventHandler(
cache.put(data)
event.guild.cache()

coreFlow.emit(GuildCreateEvent(Guild(data, kord), shard))
coreFlow.emit(GuildUpdateEvent(Guild(data, kord), shard))
}

private suspend fun handle(event: GuildDelete, shard: Int) = with(event.guild) {
Expand Down

0 comments on commit e8d99ca

Please sign in to comment.