From e8d99ca2b9449de822c46233dc40d99e82ee9072 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 78c7dbb2dee..6fa5709330c 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) {