From 3bf50660b360ac90272f1f44ab8d564b2a95d9b9 Mon Sep 17 00:00:00 2001 From: Roman Silin Date: Wed, 12 Jun 2024 12:55:11 +0300 Subject: [PATCH] Fixed sender type for `druid_instance.on_message()` --- druid/annotations.lua | 2 +- druid/system/druid_instance.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/druid/annotations.lua b/druid/annotations.lua index fc967b2..efd981f 100644 --- a/druid/annotations.lua +++ b/druid/annotations.lua @@ -1653,7 +1653,7 @@ function druid_instance.on_input(self, action_id, action) end ---@param self druid_instance ---@param message_id hash Message_id from on_message ---@param message table Message from on_message ----@param sender hash Sender from on_message +---@param sender url Sender from on_message function druid_instance.on_message(self, message_id, message, sender) end --- Remove created component from Druid instance. diff --git a/druid/system/druid_instance.lua b/druid/system/druid_instance.lua index c16a2a4..02f875d 100755 --- a/druid/system/druid_instance.lua +++ b/druid/system/druid_instance.lua @@ -397,7 +397,7 @@ end -- @tparam DruidInstance self -- @tparam hash message_id Message_id from on_message -- @tparam table message Message from on_message --- @tparam hash sender Sender from on_message +-- @tparam url sender Sender from on_message function DruidInstance.on_message(self, message_id, message, sender) local specific_ui_message = base_component.SPECIFIC_UI_MESSAGES[message_id]