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. diff --git a/lib/nosedrum/storage/dispatcher.ex b/lib/nosedrum/storage/dispatcher.ex index 08d7f7e..760b190 100644 --- a/lib/nosedrum/storage/dispatcher.ex +++ b/lib/nosedrum/storage/dispatcher.ex @@ -67,8 +67,8 @@ 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) -> - {:ok} + res_type when is_atom(res_type) or is_integer(res_type) or is_nil(res_type) -> + :ok {:error, reason} -> {:error, reason}