Merge pull request #267 from astrochili/annotations-fix-3

Fix sender type for `druid_instance.on_message()`
This commit is contained in:
Maksim Tuprikov 2024-06-13 10:16:05 +01:00 committed by GitHub
commit 1b42824912
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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.

View File

@ -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]