From fc73c66ca94f727b9ed601571743eb03bdd3bf43 Mon Sep 17 00:00:00 2001 From: nex Date: Thu, 8 Feb 2024 15:50:14 +0000 Subject: [PATCH] change invitees to invite --- src/niobot/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/niobot/client.py b/src/niobot/client.py index f78ce43..59daaf5 100644 --- a/src/niobot/client.py +++ b/src/niobot/client.py @@ -759,7 +759,7 @@ async def create_dm_room( user_id = self._get_id(user) result = await self.room_create( is_direct=True, - invitees=[user_id], + invite=[user_id], ) if isinstance(result, nio.RoomCreateError): raise GenericMatrixError("Failed to create DM room", response=result)