Rename send_message() to send()

This commit is contained in:
Salad Dais
2021-12-09 05:30:12 +00:00
parent f4bb9eae8f
commit 8b93c5eefa
19 changed files with 44 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ class TransferExampleAddon(BaseAddon):
async def get_first_script(self, session: Session, region: ProxiedRegion):
"""Get the contents of the first script in the selected object"""
# Ask for the object inventory so we can find a script
region.circuit.send_message(Message(
region.circuit.send(Message(
'RequestTaskInventory',
Block('AgentData', AgentID=session.agent_id, SessionID=session.id),
Block('InventoryData', LocalID=session.selected.object_local),