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)