From 3456bd622fbece1bec109f1822408993906796d0 Mon Sep 17 00:00:00 2001 From: Dmytro Paniuta Date: Sun, 8 Feb 2026 15:15:56 +0100 Subject: [PATCH 1/3] add nil check in Nosedrum.Storage.Dispatcher --- lib/nosedrum/storage/dispatcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nosedrum/storage/dispatcher.ex b/lib/nosedrum/storage/dispatcher.ex index 08d7f7e..05eacd1 100644 --- a/lib/nosedrum/storage/dispatcher.ex +++ b/lib/nosedrum/storage/dispatcher.ex @@ -67,7 +67,7 @@ defmodule Nosedrum.Storage.Dispatcher do {:error, :unknown_command} # the response type was not a callback tuple, no need to follow up - res_type when is_atom(res_type) or is_integer(res_type) -> + res_type when is_atom(res_type) or is_integer(res_type) or is_nil(res_type) -> {:ok} {:error, reason} -> From 0cd5dbe6ca53e6bdf5ac21f62828b555d8529024 Mon Sep 17 00:00:00 2001 From: Dmytro Paniuta Date: Sun, 8 Feb 2026 15:17:44 +0100 Subject: [PATCH 2/3] return :ok instead of {:ok} from Dispatcher.handle_interaction --- lib/nosedrum/storage/dispatcher.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nosedrum/storage/dispatcher.ex b/lib/nosedrum/storage/dispatcher.ex index 05eacd1..760b190 100644 --- a/lib/nosedrum/storage/dispatcher.ex +++ b/lib/nosedrum/storage/dispatcher.ex @@ -68,7 +68,7 @@ defmodule Nosedrum.Storage.Dispatcher do # the response type was not a callback tuple, no need to follow up res_type when is_atom(res_type) or is_integer(res_type) or is_nil(res_type) -> - {:ok} + :ok {:error, reason} -> {:error, reason} From 3d0cf0ebde0b41063230d20c7f67dad2517076ad Mon Sep 17 00:00:00 2001 From: Dmytro Paniuta Date: Sun, 8 Feb 2026 15:38:07 +0100 Subject: [PATCH 3/3] fix order of aliases in Nosedrum.Converters --- lib/nosedrum/converters.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nosedrum/converters.ex b/lib/nosedrum/converters.ex index 2cd17e5..c832479 100644 --- a/lib/nosedrum/converters.ex +++ b/lib/nosedrum/converters.ex @@ -11,8 +11,8 @@ defmodule Nosedrum.Converters do alias Nostrum.Error.ApiError alias Nostrum.Snowflake - alias Nostrum.Struct.Guild.{Member, Role} alias Nostrum.Struct.{Channel, Guild} + alias Nostrum.Struct.Guild.{Member, Role} @typedoc """ Additional options that were used when searching the cache.