From a62d890758ca0292e726918b5e49f577f7904ca2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BC=D0=B5=D0=BA=D0=B0=D1=82=D1=96=D0=B2?= <106783764+meqativ@users.noreply.github.com> Date: Tue, 1 Oct 2024 14:38:10 +0300 Subject: [PATCH] add custom() --- gateway/src/commonMain/kotlin/builder/PresenceBuilder.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gateway/src/commonMain/kotlin/builder/PresenceBuilder.kt b/gateway/src/commonMain/kotlin/builder/PresenceBuilder.kt index a7f86906038..a740c028975 100644 --- a/gateway/src/commonMain/kotlin/builder/PresenceBuilder.kt +++ b/gateway/src/commonMain/kotlin/builder/PresenceBuilder.kt @@ -38,6 +38,11 @@ public class PresenceBuilder { public fun competing(name: String) { game = DiscordBotActivity(name, ActivityType.Competing) } + + public fun custom(name: String) { + game = DiscordBotActivity(name, ActivityType.Custom) + } + private fun buildGame(): DiscordBotActivity? { val game = game