From 83ea7c9b4d8aae4922416d5577a964b0e9da9aca Mon Sep 17 00:00:00 2001 From: Hope <34831095+HopeBaron@users.noreply.github.com> Date: Thu, 13 May 2021 11:16:49 +0300 Subject: [PATCH] Fix GuildUpdate core handling (#284) * Expose the creation of application commands behavior * Fix type of emitted event --- core/src/main/kotlin/gateway/handler/GuildEventHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/gateway/handler/GuildEventHandler.kt b/core/src/main/kotlin/gateway/handler/GuildEventHandler.kt index 78c7dbb2deee..6fa5709330c4 100644 --- a/core/src/main/kotlin/gateway/handler/GuildEventHandler.kt +++ b/core/src/main/kotlin/gateway/handler/GuildEventHandler.kt @@ -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) {