From a4a2f816968a988f76667020f6fa4d2e8bb06ae4 Mon Sep 17 00:00:00 2001 From: Filip Hoffmann Date: Mon, 4 May 2026 22:22:29 +0200 Subject: [PATCH] add a bit more deprecation messages --- src/grom/gateway.gleam | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/grom/gateway.gleam b/src/grom/gateway.gleam index 3ff64f5..04d36dc 100644 --- a/src/grom/gateway.gleam +++ b/src/grom/gateway.gleam @@ -2376,6 +2376,9 @@ pub fn new( /// You should hold the gateway subject in your state. /// You'll send user messages to that subject. +@deprecated("The gateway API is broken and shouldn't be used. +If the only event you need is the InteractionCreated event, look into the HTTP Interactions pattern. +If you're in need of listening to other events, at this point you're out of luck.") pub fn new_with_initializer( init: fn(Subject(Message)) -> Result(user_state, String), identify: BaseIdentifyMessage, @@ -2415,6 +2418,9 @@ pub fn with_shards( Builder(..builder, shard_count: Some(count)) } +@deprecated("The gateway API is broken and shouldn't be used. +If the only event you need is the InteractionCreated event, look into the HTTP Interactions pattern. +If you're in need of listening to other events, at this point you're out of luck.") pub fn start( builder: Builder(state), ) -> Result(actor.Started(Subject(Message)), actor.StartError) { -- 2.51.2