basic error handling test

This commit is contained in:
Owen
2025-01-15 21:56:45 +01:00
committed by Owen Rees
parent 1a27b2bdb7
commit 8da0f33faa
7 changed files with 33 additions and 8 deletions
+7
View File
@@ -3,6 +3,13 @@ defmodule PlantIdDiscordBotTest.Mocks.Nostrum.Api do
Mocks the Nostrum.Api module.
"""
# def create_message(_channel_id, content), do: {:ok, content}
def create_message(_channel_id, content) do
send(self(), {:create_message, 123456, content})
{:ok, content}
end
def create_interaction_response(_interaction, response), do: {:ok, response}
def get_application_information() do